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

Service Worker redirects to http in reverse proxy #511

Open
cipherseven opened this issue May 7, 2023 · 4 comments
Open

Service Worker redirects to http in reverse proxy #511

cipherseven opened this issue May 7, 2023 · 4 comments

Comments

@cipherseven
Copy link

My Nuxt 3 Implementation of this is a reverse proxy through an NGINX environment that goes from 443 https on the client to 80 on the docker container holding my nuxt 3 files/server.

sw.js changes my hostname from https://someplace.com to http://someplace.com and causes a mixed content error in the browser. Am I missing something? I've looked long and hard for a configuration solution to fix this. Please let me know if this is an oversight or an error on my part. Thanks.

@cipherseven
Copy link
Author

It seems it isn't even reading the correct url (strips the .com)

This is the console warning:

Mixed Content: The page at 'https://someplace.com/sw.js' was loaded over HTTPS, but requested an insecure resource 'http://someplace/'. This request has been blocked; the content must be served over HTTPS.

@NekoSukuriputo
Copy link

@cipherseven I have the same issue as you, have you been able to fix this issue?

@Pentadome
Copy link

facing the same problem rn. Any workaround?

@z384647062
Copy link

facing the same problem

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

No branches or pull requests

4 participants