-
Notifications
You must be signed in to change notification settings - Fork 12k
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
esbuild with proxy doesn't return Content-Language headers for OPTIONS request #26782
Comments
Please let me know if you need something from me |
This one is very critical for me as it blocks development of some parts of the app |
Hi @mivanyna, to speed up our investigation kindly provide a minimal reproduction. A good way to make a minimal repro is to create a new app via That being said, it's unlikely this is a bug from our end as proxy is handled by Vite. |
@alan-agius4 I get localizations in the header so I can then fetch the data with GET for the locale |
Hi there, were you able to reproduce the issue? |
@mivanyna, unfortunately, I was not able yet to look into this issue. As mentioned above, it would definitely speed up the process if you share a minimal reproduction. |
Hi @ipranjic , I don't think it's the case as I get all other data(GET, POST, etc) |
@alan-agius4 here is the repo. What I noticed is that even if the backend server is not running I get the response for OPTIONS request, seems like the dev-server returns it. |
@mivanyna, I managed to find the root cause and will be opening a PR shortly. |
…roxied when using `vite` This commit fixes an issue were `OPTIONS` requests were not being proxied when using Vite dev-server Closes angular#26782
…roxied when using `vite` This commit fixes an issue were `OPTIONS` requests were not being proxied when using Vite dev-server Closes #26782
Thanks @alan-agius4 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Which @angular/* package(s) are the source of the bug?
upgrade, Don't known / other
Is this a regression?
Yes
Description
I upgraded my project to Angular 17 and switched to
"builder": "@angular-devkit/build-angular:browser-esbuild"
. For local env I use proxy config to redirect requests to test env.I receive all the data, except for
OPTIONS
request there is noContent-Language
header in response.It works on prev version(Angular 16 and
"builder": "@angular-devkit/build-angular:browser"
)Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
I switched to
"builder": "@angular-devkit/build-angular:browser-esbuild"
With proxy for the local env
package.json:
My proxy config looks like this:
The text was updated successfully, but these errors were encountered: