Skip to content
This repository was 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

@gagedevs

Description

@gagedevs

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions