-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
403 when loading a file from an external package if base is set #9438
Comments
Same issue here. I'm running vite under nx project, and the app is references other libraries in siblings directories. When I specify with Root URL works fine:
But when I try to load library, I got:
Debugging showed that vite collects a list of
When base is NOT set, the
When base is set, the
Note that element This is the reason of why this check will not work when base is set: The
|
@lislon That's a great finding. I think we need to call |
Hello @sapphi-red, do you think you can schedule this for a near release ? This really f* us. |
It seems like I didn't. i don't remember, it's been a while, but I think I was forced to go another way... |
Describe the bug
I am trying to create a module for tools/components I have, in order to import them in my vue application, using vite.
To test that locally, I just installed the plugin into my app with the command
npm install ../plugin
.Then, in my app, I'm just referencing the method like this:
This works well with vite, but then I am in the situation where my vue app is integrated in a bigger app, and is served under
/app
instead of the root.So I edited my vite.config.js like this:
Then, the browser fails to download the file from the plugin with a 403. See the logs below.
Workaround : disable server.fs.strict mode:
Reproduction
https://github.com/jeremyVignelles/repro-vite
System Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: