staticwebdev / blazor-starter

A starter template in C# APIs and Blazor for Azure Static Web Apps
217 stars 104 forks source link

Cors issues #50

Open lazackna opened 4 months ago

lazackna commented 4 months ago

The client gives errors that cors doesn't allow the client and server(api) to be run on the same machine. The local.settings.example.json file which containts { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "", "FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated" }, "Host": { "LocalHttpPort": 7071, "CORS": "*", "CORSCredentials": false } }

Should be renamed to local.settings.json

This should fix the issue