Missing headers using Azure Static Web App with staticwebapp.config.json

Per K. Jørgensen 0 Reputation points
2024-09-04T14:12:29.2266667+00:00

We are using the "staticwebapp.config.json", where we have following:

{

We were expecting the headers to be set on the first response to "https://green-sea-07f102103-7937.westeurope.5.azurestaticapps.net/", but get following:

User's image

They are set on the following responses for "js/css/ico/etc.."

User's image

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
957 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.