Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esi:include using https:// urls are requested using http:// #18

Open
GromNaN opened this issue Jul 6, 2022 · 1 comment
Open

esi:include using https:// urls are requested using http:// #18

GromNaN opened this issue Jul 6, 2022 · 1 comment

Comments

@GromNaN
Copy link

GromNaN commented Jul 6, 2022

Using Akamai, I can include a page using HTTPS.

<esi:include src="https://www.example.com/_esi/header"/>

For such ESI tag, ETS tries to make a request using http. This is not working for me since my backend server has a redirection from http:// to https://.

There is a sentence in the readme that seems to be an answer, but I expect https:// urls to be requested using HTTPS.

ETS strips Content-Security-Policy headers to enable support for proxying HTTPS origins via HTTP.

@bkoltoniak
Copy link

I came across the same issue. ESI includes referenced by https are fetched using http. The origin server have http to https redirect set up. The redirect propagates to the template in which esi tag was inserted and the user is redirected to the url from esi:include src. Furthermore this causes ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION if I use multiple esi:inlcude tags like this.

Is there any way to fix that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants