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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…