How to access a local .js file via URL


I’m trying to use a serviceWorker in our app (we extended cockpit)


but I don’t now how to “get” ws.js to be passed to register.

My goal is to have a .js file in my source directory and be able to access it as a URL (if privately accessible even better) from the Angular app.

Any hints?



This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.