Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web workers with standard privileges on app protocol disabled #1914

Open
hosnar opened this issue Jan 17, 2023 · 0 comments
Open

Web workers with standard privileges on app protocol disabled #1914

hosnar opened this issue Jan 17, 2023 · 0 comments

Comments

@hosnar
Copy link

hosnar commented Jan 17, 2023

Hi. A while back after packaging app assets didn't load on production so I fixed that issue by disabling standard privileges on app scheme (according to this answer: #1684 (comment)

Now I am trying to use a web worker (Webpack 5) and it works fine on development, but once I package the app I get an error:
DOMException: Failed to construct 'Worker': Script at 'app://./js/worker.eb2c59e9.js' cannot be accessed from origin 'null'.

I then tried enabling { secure: true, standard: true } privileges back and Worker starts working in packaged app, but assets are not loading. Is there any way I could get Workers working on production without standard privileges on app scheme? Any help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant