Skip to content

vite_javascript_tag to dev server instance #124

Answered by ElMassimo
dflynn15 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Daniel.

Currently, the library is based around the use of a proxy for ease of use.

Thanks to some fixes contributed upstream, the use of the proxy is not as critical as it used to be, as Vite should behave correctly and request assets respecting the original host in each script and link tag.

I provide the following notes as a workaround that you can try out, if you try it let me know how it goes. Also, out of curiosity, why do you want to enable HTTP/2 locally, is the amount of requests very high?


Provided that your CSP configuration allows connections to a different server (Vite's dev server), you should be able to bypass the proxy and connect with Vite directly.

If you are not using…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ElMassimo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants