kopale.
Azure Static Web App (Blazor) problem with CORS
Jesus... the Azure documentation to put it lightly is so scattered all around. I tired bunch of configs, none of seems to work. Later I tried Cloudflare Pages and its working. You have to create and set '_headers' file (just paste this):
Deploy and boom it is working as expected. Still I would like to host it on Azure, can anybody help? Thank you 🙂
16 replies
Azure Static Web App (Blazor) problem with CORS
Thank you but like i said the host is the azure static web app, so i cant set cors in code because it is served by a file server (in my case azure) https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-9.0#standalone-deployment
16 replies