you are awesome.thanks your link.
Hello support, When I upload the project to IIS, I get a CORS error in Update and Delete operations, but I do not get an error in the Insert process. However, http: // localhost: 4200 is written in the settings file of the project.
Access to XMLHttpRequest at 'http://localhost:7878/api/lepton-theme-management/settings' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I get CORS error for update processes, but if we do the insert process, I don't.
Access to XMLHttpRequest at 'http://10.100.20.101:8088/api/language-management/languages/806d5656-6deb-91bf-d532-39f6db038b0c/set-as-default' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
my appsettings { "App": { "SelfUrl": "http: // localhost: 8088", "ClientUrl": "http: // localhost: 4200", "CorsOrigins": "http: //*.TView.com,http: // localhost: 4200" } }
I have 3 questions. 1.q) When I deploy the project in IIS, when I refresh the page in the browser in angular project, I get a 404 error, but I can access the same page when I go from the menu. I do not get it when I run it with visual studio.
2.q) The error I get when I click the make language default button. This error is also running on IIS
http: // localhost:8088/api/language-management/languages/cb66ae93-ea97-bec5-9d21-39f6da954d03/set-as-default 'from origin' http://localhost:4200 'has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
my appsettings
{
"App": {
"SelfUrl": "http: // localhost: 8088",
"ClientUrl": "http: // localhost: 4200",
"CorsOrigins": "http: //*.TView.com,http: // localhost: 4200"
}
}
By the way, I publish http on my local computer and when I publish on IIS, I publish http.
3.q) What kind of settings should we make while publishing a project on IIS?
When I deploy the Angular project and try to login, I get the following error. When it is a http broadcast, the 'requireHttps' property is false but it still does not log in. Can you help with the solution?
ERROR issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).
Thanks.
Hi @liangshiwei thanks your answer
Hi Mehmet, Thanks your answer.
If I run it with https, I can login, but when I run it with http, I cannot login. If I use http in appsettings and iis settings, I cannot login. I wonder what I need to do to run it with http://localhost:XXXX.
Thanks.