Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
612 views
in Technique[技术] by (71.8m points)

api-platform.com - docs.jsonld链接标头不通过代理后面的https进行通用删除(docs.jsonld Link header not generetade with https behind proxy)

The link header pointing to the Jsonld documentation is always generated without ssl.

(指向Jsonld文档的链接头总是在没有ssl的情况下生成。)

This triggers a petition to not authorized scripts.

(这会触发对未经授权的脚本的请愿。)

These are my (i think) relevant $_SERVER vars.

(这些是我(我认为)相关的$ _SERVER变量。)

Added the REMOTE_ADDR trusted proxy just in case.

(以防万一,添加了REMOTE_ADDR受信任的代理。)

["TRUSTED_PROXIES"]=> string(42) "127.0.0.1,127.0.0.2,172.25.0.1,REMOTE_ADDR"

([“ TRUSTED_PROXIES”] =>字符串(42)“ 127.0.0.1,127.0.0.2,172.25.0.1,REMOTE_ADDR”)

["HTTP_X_URL_SCHEME"]=> string(5) "https"

([“ HTTP_X_URL_SCHEME”] =>字符串(5)“ https”)

["HTTP_X_FORWARDED_SSL"]=> string(2) "on"

([“ HTTP_X_FORWARDED_SSL”] => string(2)“ on”)

["HTTP_X_FORWARDED_PROTO"]=> string(5) "https"

([“ HTTP_X_FORWARDED_PROTO”] =>字符串(5)“ https”)

Also tried setting router.request_context.scheme: 'https' parameter but with no luck.

(还尝试设置router.request_context.scheme:'https'参数,但是没有运气。)

Traced the problem to api-platform/core/src/Hydra/EventListener/AddLinkHeaderListener.php But I do not know what else to do.

(将问题追溯到api-platform / core / src / Hydra / EventListener / AddLinkHeaderListener.php,但我不知道该怎么办。)

  ask by Nodens translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...