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

Fix openepaperlink.eu proxy on https proxies #251

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

jhbruhn
Copy link
Contributor

@jhbruhn jhbruhn commented Feb 28, 2024

Browser don't like to make http request when on a https connection. This fixes that. We probably could also always make a https connection, but that might cause issues if e.g. the server certificate runs out. Then at least local http access will still work.

The file editor does not work yet, I hope to fix it in the future.

jhbruhn and others added 2 commits February 28, 2024 16:22
removed location.protocol: you can use the relative URL //openepaperlink.eu/getupdate/?url= without specifying the protocol (http: or https:) in JavaScript when using the fetch() function. This is because the browser will automatically use the same protocol (HTTP or HTTPS) as the current page.
Also, reverted the http:// url in line 287 because that's an url that is called by the esp32, not the browser.
@nlimper nlimper merged commit b527d3e into OpenEPaperLink:master Mar 4, 2024
1 check passed
@nlimper
Copy link
Collaborator

nlimper commented Mar 4, 2024

Thanks for fixing. I refixed it a little bit ;-)

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

Successfully merging this pull request may close these issues.

None yet

2 participants