-
Notifications
You must be signed in to change notification settings - Fork 16
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
manifest.json and google chrome #19
Comments
Ok just found how to do it. I simply replaced my call: |
Thank you for this |
Thank the gods for GuillaumeCisco! |
Thanks a lot! Little advertising: I'm free for hiring ;) |
This qualifier from the MDN documentation is worth emphasizing:
For people using this "solution" in their applications, a comment referencing the above may be warranted in order to prevent confusion on the part of reviewers, maintainers, etc. |
Because of CORS, the manifest.json request returns an HTTP 401 error. Explaination: koajs/basic-auth#19
Hello there,
I use a basic auth on my server side rendering project with this repo.
Interestingly, After authenticating on
/
, I can see in the network devtools panel the/manifest.json
route serves a 401. Indeed the basic auth is not passed for this route. This is the one and only route which has the problem.In firefox, the route is not even fetched.
Manifest.json is for making single page application as desktop/mobile web app using service worker.
Looks like chrome does not want to pass the
Authorization
request header for this route as explained here:web-push-libs/pywebpush#42
and https://developers.google.com/web/ilt/pwa/introduction-to-push-notifications
Does someone know if there is a way to work with
basic auth
andmanifest.json
?Maybe using koa-cors?
Like proposed here: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-discuss/ZLXwilWYwZs
Thank you,
The text was updated successfully, but these errors were encountered: