my host website is dobany.com, angular site is admin.dobany.com, I have aleady updated the setting like this: "App": { "ServerRootAddress": "http://dobany.com", "ClientRootAddress": "http://admin.dobany.com", "CorsOrigins": "http://*.dobany.com,http://localhost:4200,http://localhost:49152,http://admin.dobany.com", "SwaggerEndPoint": "/swagger/v1/swagger.json", "AllowAnonymousSignalRConnection": "true" },
But I still have issues:
angular site works fine, I can see the data loaded, however, when I submitted email setting from the host setting page, the error messages showed: Access to XMLHttpRequest at 'http://dobany.com/api/services/app/HostSettings/UpdateAllSettings' from origin 'http://admin.dobany.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. polyfills.59c59ad684f93239a61e.js:1 PUT http://dobany.com/api/services/app/HostSettings/UpdateAllSettings net::ERR_FAILED
When I refreshed the home page or loaded different pages, the cors policy issue showed occasionally