Headers are not send #22236
Replies: 2 comments 1 reply
-
|
Note that the url is in the form http://localhost:3303/@fs/C:/Users/ Not sure it matters since only the html file seem to have it |
Beta Was this translation helpful? Give feedback.
-
|
What you’re seeing is likely the difference between document responses and module/asset requests, especially in an extension/dev-server setup, not just “Vite randomly stopped sending headers”. A few things to separate here:
What I would test next:
So I would not assume “Vite should attach these headers to every file request and if not it’s broken”. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I'm working an a browser extension, I'm using Vue + Vite for the web pages.
I needed to use OPFS, so I had to set Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy.
I added this to the server, and it used to work.
It seems like it's not working anymore, the html file has it but other files don't.
I've checked this, but I'm not using preview #9864
I haven't seen any indication in the doc that the headers should not be always send, the doc is sparse though:
I have this config:
Since then, I've updated a few files because I thought the error was from SQLite but it seems it was not.
Reproduction
https://codeberg.org/SoloDeveloping/SemanticNotes
Steps to reproduce
Run pnpm install, pnpm dev, install the extension, open the sidepanel, open the main extension url, and it does not seem to be working anymore.
System Info
System: OS: Windows 10 10.0.19045 Browsers: Chrome: 147.0.7727.56 Brave 1.89.132 (Build officiel) (64 bits) Chromium: 147.0.7727.56 Tested on Chrome and Brave.Used Package Manager
pnpm
Logs
It's present on the html file:
Not present in the main ts file:
Not present in the SQLite file, but requested:
Validations
Beta Was this translation helpful? Give feedback.
All reactions