-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Error during service worker registration #3980
Comments
@milad1367 Am I right in thinking I think you can fix this either by adding https support to your live site or removing the |
yes. i come back the gatsby starter and test it.i remove prefix-path from config. but it is not solved. |
@milad1367 You need to use a See the surge docs on forcing https: https://surge.sh/help/using-https-by-default |
@m-allanson guy, I deleted gatsby-plugin-offline and that problem solved. |
Description
i use --prefix-paths and i defined pathPrefix.
in localhost every things is perfect. but in real host i am encounter with this error :
Environment
Gatsby version: "gatsby": "^1.9.153",
Node.js version: 8.9.2
Operating System: mac os saria
File contents (if changed):
gatsby-config.js
:Steps to reproduce
1. for a test I delete path prefix
2.and build it with: gatsby build
3. in localhost everything is ok!
4. but now I have same problems i real host:
register-service-worker.js:42 Error during service worker registration: DOMException: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).
It does not seem to be a problem with path prefix!
The text was updated successfully, but these errors were encountered: