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

Vite overwrite the Access-Control-Allow-Origin from the CORS module #13

Closed
Barbapapazes opened this issue Mar 30, 2024 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@Barbapapazes
Copy link

Package version

3.0.0-8

Describe the bug

Hello,

I'm using the CORS module this the setting origin to true. In the same time, I'm fetching my server, from another domain, with the withCredentials to true. The browser use a preflight request but the server return * instead of the domain that fetch the server. This cause an issue because it's forbidden.

similar to o nuxt/nuxt#23962

Reproduction repo

No response

@Julien-R44 Julien-R44 self-assigned this Mar 30, 2024
@Julien-R44 Julien-R44 added the bug Something isn't working label Mar 30, 2024
@Julien-R44
Copy link
Member

Should be resolved with #14 and so version 3.0.0-11 !

But beware, we have a breaking change, see https://github.com/adonisjs/vite/releases/tag/v3.0.0-11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants