feat(electron-esbuild): remove COEP headers in document load #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #12
Scenario:
HTML file, when retrieved, will fall through
![image](https://user-images.githubusercontent.com/13672022/119475758-a14f0380-bd77-11eb-8b3c-fbd68fb47cde.png)
if (req.url === '/' || req.url === '')
block resulting in the CORS header being set for the whole documentLet's say we want to add new worker file, which we need to add a new
entryPoints
inesbuild.renderer.config.js
in order to bundle the worker file. Example: https://github.com/josteph/josteph-electron-esbuild/blob/912a2e9243c938d261fe91713b48debfe9ece4c3/config/esbuild.renderer.config.jsProject structure now:
![image](https://user-images.githubusercontent.com/13672022/119476016-dce9cd80-bd77-11eb-9853-45f0fdbddb5c.png)
Expected
Able to resolve
http://localhost:9080/worker.js
Actual Behaviour
Blocked due these headers being set in HTML load: