What's the reasoning that the template examples do not link Static Web Apps to APIM? #1469
Replies: 2 comments 1 reply
-
@vieiraae can you take a look at this and suggest what's the best practice to configure SWA <-> APIM? cc: @jongio @weikanglim |
Beta Was this translation helpful? Give feedback.
-
I linked a SWA to APIM in a proof of concept. It seems to work well except when I try using auth in SWA then the API breaks, the API returns a HTTP status code 500. I haven't researched this issue in depth yet. I suspect it's because I'm not understanding how the SWA auth works with APIM. It works fine when only using the subscription keys, i.e. without using SWA auth. But when including SWA auth something else must change which breaks it. |
Beta Was this translation helpful? Give feedback.
-
In the various templates, for example todo-csharp-cosmos-sql, the Static Web App URL is added as an origin to the APIM policy instead of linking the Static Web App to the APIM. Is there a reason linking was not used? It seems better to me to link, otherwise all of the API calls in the Static Web App will need to be updated to call the APIM, correct?
I'm working with a Blazor WASM application deployed as a Static Web App. I'm thinking the only way it will work with APIM is by linking the Static Web App to APIM. Is that also correct?
Beta Was this translation helpful? Give feedback.
All reactions