question

JoelCox-5997 avatar image
1 Vote"
JoelCox-5997 asked SnehaAgrawal-MSFT answered

Azure Static WebbApp staticwebapp.config.json GlobalHeaders are not updating.

I am having an issue updating my globalHeaders in my config.json.

I have updated and pushed the new headers, but I continue to show the same headers as before? Is there any way I can force static webapps to use the new config.json.

I am also running this as a PWA, I am not sure if that effects whether the update will be propagated.

I have checked https://securityheaders.com/ with my website as well, and the headers are still not updating.

azure-static-web-apps
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking in to see if the below answers helped. If this answers your query, do click “Accept Answer” and Up-Vote for the same. And, if you have any further query do let us know.

0 Votes 0 ·

1 Answer

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered

Thanks for asking question! Just to confirm how are you updating globalHeaders? The globalHeaders section provides a set of HTTP headers applied to each response, unless overridden by a route header rule, otherwise the union of both the headers from the route and the global headers is returned.

See the example configuration file for usage examples.

Let us know if issue remains.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.