Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
Expected behavior
Requests made by the Static Web App to the API Management API should include the correct Subscription key value within the the correct Subscription Header for the API.
Additional context
I haven't seen any documentation around how/if this is expected to work; there's nothing in the SWA API Managment documentation that suggests such a configuration is not possible.
Having enabled API Management's tracing, I can see that the default Ocp-Apim-Subscription-Key appears to be sent from the Static Web App in this configuration, which obviously fails as this is not the correct Subscription Header for the API.
In my specific setup, I have a number of other APIs already using x-api-key and I require the API design to be consistant.
To Reproduce Steps to reproduce the behavior:
Ocp-Apim-Subscription-Key
tox-api-key
Expected behavior Requests made by the Static Web App to the API Management API should include the correct Subscription key value within the the correct Subscription Header for the API.
Additional context I haven't seen any documentation around how/if this is expected to work; there's nothing in the SWA API Managment documentation that suggests such a configuration is not possible.
Having enabled API Management's tracing, I can see that the default
Ocp-Apim-Subscription-Key
appears to be sent from the Static Web App in this configuration, which obviously fails as this is not the correct Subscription Header for the API.In my specific setup, I have a number of other APIs already using
x-api-key
and I require the API design to be consistant.