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

Find solution to serving http from service worker #17

Closed
tolu opened this issue Aug 16, 2017 · 3 comments
Closed

Find solution to serving http from service worker #17

tolu opened this issue Aug 16, 2017 · 3 comments
Labels
Projects

Comments

@tolu
Copy link
Owner

tolu commented Aug 16, 2017

https://www.w3.org/TR/mixed-content/#service-workers
w3c/ServiceWorker#493 (comment)
Financial-Times/n-service-worker#82

Service worker blocks mixed content (images from iTunes and almost all *.mp3's) which is a drag.

https://developers.google.com/web/fundamentals/security/csp/

Use proxy or something to solve or find out how csp can help.

  • Would no-cors mode for images help?
@tolu tolu added the bug label Aug 16, 2017
@tolu
Copy link
Owner Author

tolu commented Aug 17, 2017

Audiosear.ch at least provide images over https for search results... but seems to need a nodejs proxy for authentication... can we use a azure function or something like that??? Something on now?
That would at least keep the appId and secret out of the hands of others...
Or is it possible to use redirectUrl for that?

Proxying the feed via rss2json solves the http issues there for the rss feeds.

But the remaining question about the audio files remain...

@tolu
Copy link
Owner Author

tolu commented Aug 17, 2017

@tolu
Copy link
Owner Author

tolu commented Aug 19, 2017

It is not possible to avoid the mix content issue...
w3c/ServiceWorker#493 (comment)

Although I've been in contact with Audiosear.ch that have been very helpful and provide https proxies for the audio files!

Then only drawback the is I need to use some sort of server side component for acquiring a token for their API but that is a small price to pay.

@tolu tolu mentioned this issue Aug 19, 2017
@tolu tolu added this to Done in Podspace Aug 19, 2017
@tolu tolu closed this as completed Aug 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant