Comments (7)
I am also experiencing some trouble with this. For me, it does not work on Chrome. Interestingly, Chrome marks the certificate as "Invalid", even though it seems valid when you inspect it:
This leads to an error when I try to register the SW:
app-d5c93b203741af8b7e1b.js:2538 DOMException: Failed to register a ServiceWorker for scope ('https://localhost:3000/') with script ('https://localhost:3000/service-worker.js'): An SSL certificate error occurred when fetching the script.
I wonder if this might have something to do with the certificate validity being too long?
Anyway, it does seem to work in Safari, and the SW registration was successful there.
from pwa-fundamentals.
You shouldn't need SSL anymore, as http://localhost
is considered a secure domain. I'll take a quick look
from pwa-fundamentals.
Thanks Mike - love all your courses by the way!
from pwa-fundamentals.
@gigamesh do you have any errors in your terminal?
I would try to run the app on http://localhost:3000
by running yarn start
or npm start
instead of trying to get https working.
At the time we recorded this course there were some nasty chrome bugs that required each student to generate a self-signed certificate, but as far as I can tell they've all been straightened out.
from pwa-fundamentals.
yarn start
also results in it running on https -- I can't really make sense of the server code so I wouldn't know what to change. Looks like there is a lot of https stuff happening.
from pwa-fundamentals.
@mike-north I am not sure if this is related but I am going step by step by README.MD but getting Privacy Error on localhost:3000
Certificate is invalid, not trusted.
I tried to delete whole project and do it again and again but not use.
from pwa-fundamentals.
@tymochko you can get around this chrome error by typing thisisunsafe
in the browser window. I think maybe chrome changed rules about self-signed certificates?
from pwa-fundamentals.
Related Issues (20)
- An in-range update of react is breaking the build 🚨 HOT 1
- An in-range update of @types/react-dom is breaking the build 🚨 HOT 1
- Not able to setup http2 in exercise 1 HOT 2
- An in-range update of node-sass is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-jest is breaking the build 🚨 HOT 5
- ./run serve is deprecated HOT 3
- Not able to persist cart update HOT 6
- Getting Cannot read property 'invalid' of undefined HOT 4
- Dependabot can't resolve your JavaScript dependency files
- Build:Prod Compression Webpack Plugin error HOT 2
- Completely document (in the README) a way to run all tasks for this project in Windows
- Error on "Conditions for replacing service worker" slide
- Dependency deprecation warning: travis-deploy-once (npm)
- File loader error HOT 2
- Concurrently not running with single quotes HOT 1
- Can't get it working on Windows HOT 1
- Dependency Dashboard
- Action Required: Fix Renovate Configuration
- Server cli missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pwa-fundamentals.