SPA with API Management Instance with Custom URL from Azure Front Door?
I have a SPA connected to my API Management instance, hosted by my Azure Storage account. I want a more memorable/user-friendly URL to direct our users to the SPA, and in my research I saw that Azure Front Door would be able to do this. How can I configure my SPA with Azure Front Door, and change the URL?
Hi @hampton123, Azure Front Door provides multiple entry endpoints around the world, so your user can connect to the nearest Front Door endpoint, and then from there the traffic flows on Microsoft's backbone to where your APIM instance is. If your SPA uses authentication, it may render Front Door's caching feature useless, as any user traffic needs to authenticate to APIM instance (and to Azure AD B2C), so the content may be hard to cache: some apps put unique parameter inside the URL, while cache is based on URL - if it's unique everytime, cache is useless. So the answer for your question "Is it possible?" is Yes, provided that you realize that you may not be able to use Front Door's caching feature. You can activate WAF (Web Application Firewall) on Front Door to protect your APIM instance and your back-end API against well-known attacks or malicious bots.
Sign in to comment