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

fix(vite): add configured headers for devtool-related response #710

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nighca
Copy link

@nighca nighca commented Nov 22, 2024

server.headers in vite configuration is now ignored by __devtool__ related requests, which are handled by sirv.

This PR applies server.headers in vite configuration to these requests' response.

This PR fixes #565.

Copy link

netlify bot commented Nov 22, 2024

Deploy Preview for vue-devtools-docs canceled.

Name Link
🔨 Latest commit 5294d4b
🔍 Latest deploy log https://app.netlify.com/sites/vue-devtools-docs/deploys/673ffff5aa8e8d00085adcd3

Copy link

pkg-pr-new bot commented Nov 22, 2024

Open in Stackblitz

@vue/devtools-applet

pnpm add https://pkg.pr.new/@vue/devtools-applet@710

@vue/devtools-core

pnpm add https://pkg.pr.new/@vue/devtools-core@710

@vue/devtools

pnpm add https://pkg.pr.new/@vue/devtools@710

@vue/devtools-api

pnpm add https://pkg.pr.new/@vue/devtools-api@710

@vue/devtools-kit

pnpm add https://pkg.pr.new/@vue/devtools-kit@710

vite-plugin-vue-devtools

pnpm add https://pkg.pr.new/vite-plugin-vue-devtools@710

commit: 5294d4b

@webfansplz
Copy link
Member

@nighca I tested this with use case #565, but the issue still seems to exist. You can reproduce it with pnpm run build && pnpm run play

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

Successfully merging this pull request may close these issues.

Vite integration iframe content fetch connection refused with Cross Origin Embedder Policy applied
2 participants