-
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
headers for dev-server not working anymore after upgrade from angular 16 to 17 #27464
Comments
I just noticed the same / a similar issue. These headers are also not available for Using the "old" browser builder with a random custom header for demo purposes, results in these response headers (i simply But after updating (and switching to the application builder) the custom header is gone. Additionally there is no |
same issue here |
…nd HTML page Headers were not configured correctly. Closes angular#27464
…ia resources and HTML page Headers were not configured correctly. Closes angular#27464
…dia resources and HTML page Headers were not configured correctly. Closes angular#27464
…nd HTML page Headers were not configured correctly. Closes #27464
…dia resources and HTML page Headers were not configured correctly. Closes #27464
so this is fixed ? if yes in which version ? |
Yes, it be released on NPM later on today. |
@alan-agius4 |
@PJozeph, for the production server you need to configure your production server which settings will vary based on which server you are using. The settings in |
@PJozeph, the These settings do not affect your production server, as the configuration of the production server is outside the Angular CLI's. |
@alan-agius4 I am really appreciate your help, thank you ! This is how I fixed the issue on PROD ! |
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?
Don't known / other
Is this a regression?
Yes
Description
I've created a new angular 17 app with
ng new angular-tour-of-heroes
.After adding custom headers in angular.json:
they are not present in the initial localhost (index.html) request. All subsequent requests contains the headers.
When creating a new angular 16 app and adding the same config it works for the initial request as well.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: