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

ServiceWorker registration failed: DOMException: Only secure origins are allowed (see: https://goo.gl/Y0ZkNV). #59

Closed
jose2007kj opened this issue May 5, 2017 · 9 comments

Comments

@jose2007kj
Copy link

jose2007kj commented May 5, 2017

sir,thanks for this awesome project..........the app opens successfully but i get this message in console i am running the code with ng serve host MYIP

@jose2007kj
Copy link
Author

jose2007kj commented May 6, 2017

i got it working while following the below steps bt not able to access it throgh phone
1)ng build --prod --aot
2)npm run precache
3)npm install live-server --save-dev
4)npm run static-serve

sir,if i did't follow step 3,4 then i get ServiceWorker registration failed: TypeError: Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script. Navigated to http://localhost:4200/ also i notice that dist file is getting removed while doing ng serve

@jose2007kj
Copy link
Author

jose2007kj commented May 8, 2017

i think https server is required...going to check with firebase....................https://houssein.me/continuous-integration-angular-firebase-travisci

@jose2007kj
Copy link
Author

working fine when deployed in firebase

@housseindjirdeh
Copy link
Owner

Apologies for not getting back to you sooner! You're right, HTTPS is required and that's why that warning was thrown :)

@jose2007kj
Copy link
Author

no problem sir,.......................thanks .....your tutorials and this opensource project is really helpful

@housseindjirdeh
Copy link
Owner

Cheers :) I'm glad you find them so helpful!

@Ganeshjee02
Copy link

please help me to how to use push notification in angular cli project

@jose2007kj
Copy link
Author

@Ganeshjee02 bro please see this link....... it seems to have some information u require

@adarshvsukumaran
Copy link

@jose2007kj
Hi, in Firebase how can run server.js. [In localsystem, we have to use 'node server.js' command in CLI]. I have deployed my code in Firebase. But when i run the code, i am getting this error. "WebSocket connection to 'ws://localhost:9090/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED"

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