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
Custom headers for @vitest/browser
#4888
Comments
I think your issue is same as #3743 Currently it should be possible to achieve I haven't thought about using |
Yup, custom plugin solution works without a problem. It feels a bit hacky when we already have |
Good point. I wasn't aware of Currently main html document (which is where coop/coep headers are meant to be) is served by its own static middleware, so it's skipping Vite's normal processing to inject vitest/packages/browser/src/node/index.ts Lines 25 to 32 in a73c1c2
|
Describe the bug
When using
@vitest/browser
custom response headers inserver.headers
are not respected.Reproduction
Try to use
SharedArrayBuffer
, without correct headers it's not possible to get a reference to that object.System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: