exokitxr / exokit-web

Exokit WebXR engine for the browser
70 stars 18 forks source link

Service Worker attach 404 #109

Closed avaer closed 5 years ago

avaer commented 5 years ago

image

I've noticed that the Service Worker attachment can happen too late for the inner iframes to be controlled by it, which results in possible 404's when you're not going through the worker.

To reproduce, it's easiest a lot of sites loading at once to the service worker attachment cannot keep up. Though, it's a race condition so not always reproducible.

A solution would be to wait for the Service Worker to be attached in the inner iframes.

avaer commented 5 years ago

Turns out this was due to the proxy API key not being sent to the proxy (no query string in the Referer header).