Update: This issue is resolved.
Resolution: It was observed that the staticwebapp.config.json was missing from the following code:
"globalHeaders": {
"referrer-policy": "strict-origin-when-cross-origin"
}
The complete file should look like this:
{
"navigationFallback": {
"rewrite": "/index.html"
},
"globalHeaders": {
"referrer-policy": "strict-origin-when-cross-origin"
}
}
This might be caused by a combination of a spec of BirdSeed API and the default Referrer-Policy
of Static Web Apps.
BirdSeed API seems to require the Referer
header in a request as its spec. If the API is invoked without the Referer
header, the API doesn't respond properly. This behavior of the API can be confirmed by curl or something easily.
The default Referrer-Policy
of Static Web Apps is same-origin
. This means that Referer
header is not sent to other origin.