You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on an app which uses the default service-worker but after sometime if the page is left open it will stop working showing a "Page unreachable" error until you do a hard refresh, close the tab and open a new one or until you clear the service worker cache. I've got Okta authentication implemented on my app, and when this happens I get the following error:
"Access to fetch at 'MyOktaAuthURL' (redirected from 'MySiteURL/index.html?WB_REVISION=xxxx') from origin 'MysiteUrl' has been blocked by CORS policy"
And the following error comes from the service-worker script: "Uncaught (in promise) TypeError: Failed to fetch"
Had anyone had a problem like this before?
Thanks!
The text was updated successfully, but these errors were encountered:
I don't know if it is related, but the CRA 4 does not provide any more service worker, you need to add it manually or use the CRA template. You can do this like here:
@a-tonchev I'm not sure which CRA version was used to create this project, but the service worker do generates and I can see it on my app, and on the console I can see errors coming from it.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
I've been working on an app which uses the default service-worker but after sometime if the page is left open it will stop working showing a "Page unreachable" error until you do a hard refresh, close the tab and open a new one or until you clear the service worker cache. I've got Okta authentication implemented on my app, and when this happens I get the following error:
"Access to fetch at 'MyOktaAuthURL' (redirected from 'MySiteURL/index.html?WB_REVISION=xxxx') from origin 'MysiteUrl' has been blocked by CORS policy"
And the following error comes from the service-worker script: "Uncaught (in promise) TypeError: Failed to fetch"
Had anyone had a problem like this before?
Thanks!
The text was updated successfully, but these errors were encountered: