Code Monkey home page Code Monkey logo

Comments (7)

nielsboecker avatar nielsboecker commented on June 13, 2024 1

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:

image

image

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.

mike-north avatar mike-north commented on June 13, 2024

You shouldn't need SSL anymore, as http://localhost is considered a secure domain. I'll take a quick look

from pwa-fundamentals.

gigamesh avatar gigamesh commented on June 13, 2024

Thanks Mike - love all your courses by the way!

from pwa-fundamentals.

mike-north avatar mike-north commented on June 13, 2024

@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.

gigamesh avatar gigamesh commented on June 13, 2024

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.

tymochko avatar tymochko commented on June 13, 2024

@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.

Screenshot 2020-03-09 at 18 58 53

from pwa-fundamentals.

MichaelDurfey avatar MichaelDurfey commented on June 13, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.