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
{{ message }}
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
The path of the provided scope ('/service/') is not under the max scope allowed ('/static/js/'). Adjust the scope, move the Service Worker script, or use the Service-Worker-Allowed HTTP header to allow the scope.
#53
Open
gagedevs opened this issue
Jul 12, 2022
· 1 comment
I copied a lot of code from Ultraviolet-Node and whenever I press enter, this error along with another similar to that one (Uncaught (in promise) DOMException: Failed to register a ServiceWorker for scope ('linkhere/service/') with script ('linkhere/static/js/sw.js'): The path of the provided scope ('/service/') is not under the max scope allowed ('/static/js/'). Adjust the scope, move the Service Worker script, or use the Service-Worker-Allowed HTTP header to allow the scope.) comes up.
Expected Behavior
It should go to the website that was entered into the form.
Current Behavior
It shows the above errors and does not work
Possible Solution
The sw.js needs moved somewhere else and I may have setup the bare server wrong, since I'm using express, and not just a normal site.
I'm trying to make a hub for school and friends, and Ultraviolet isn't working with my express atm..
Possible Implementation
Steps to use express if this is a problem with express
Directory
index.js node_modules package-lock.json views
index.mjs package.json particles.json static
Static:
js(folder with js including sw.js and form.js which has the form script) styles(folder with styling) uv(folder with core files)
Views:
index.ejs particles.ejs(test file for particles.js)
The text was updated successfully, but these errors were encountered:
I copied a lot of code from Ultraviolet-Node and whenever I press enter, this error along with another similar to that one (Uncaught (in promise) DOMException: Failed to register a ServiceWorker for scope ('linkhere/service/') with script ('linkhere/static/js/sw.js'): The path of the provided scope ('/service/') is not under the max scope allowed ('/static/js/'). Adjust the scope, move the Service Worker script, or use the Service-Worker-Allowed HTTP header to allow the scope.) comes up.
Expected Behavior
It should go to the website that was entered into the form.
Current Behavior
It shows the above errors and does not work
Possible Solution
The sw.js needs moved somewhere else and I may have setup the bare server wrong, since I'm using express, and not just a normal site.
Steps to Reproduce
https://edurelief.cf
using incognito's bare server (https://incog.dev/bare/) might have something to do with it..?
Context (Environment)
I'm trying to make a hub for school and friends, and Ultraviolet isn't working with my express atm..
Possible Implementation
Steps to use express if this is a problem with express
Directory
index.js node_modules package-lock.json views
index.mjs package.json particles.json static
Static:
js(folder with js including sw.js and form.js which has the form script) styles(folder with styling) uv(folder with core files)
Views:
index.ejs particles.ejs(test file for particles.js)
The text was updated successfully, but these errors were encountered: