Hi,
I am trying to Update in the user page some info the Cors origin block the url only on update.
Any help?
10 Answer(s)
-
0
- What is your product version?
- What is your product type (Angular or MVC)?
- What is product framework type (.net framework or .net core)?
-
0
- Version 6.9
- Angular
- .net core
-
0
-
0
-
0
Very strange, can you look at the logs of the backend application?
-
0
Here is the log there is no error
INFO 2019-08-01 01:55:48,606 [66 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS http://185.187.94.224:8888/api/services/app/HostSettings/GetAllSettings
INFO 2019-08-01 01:55:48,607 [66 ] pNetCore.Cors.Infrastructure.CorsService - CORS policy execution successful. INFO 2019-08-01 01:55:48,607 [66 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.3138ms 204 INFO 2019-08-01 01:55:48,608 [66 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS http://185.187.94.224:8888/api/services/app/CommonLookup/GetEditionsForCombobox?onlyFreeItems=false
INFO 2019-08-01 01:55:48,608 [66 ] pNetCore.Cors.Infrastructure.CorsService - CORS policy execution successful. INFO 2019-08-01 01:55:48,608 [66 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.2136ms 204 INFO 2019-08-01 01:55:48,627 [66 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://185.187.94.224:8888/api/services/app/HostSettings/GetAllSettings
INFO 2019-08-01 01:55:48,628 [66 ] pNetCore.Cors.Infrastructure.CorsService - CORS policy execution successful. INFO 2019-08-01 01:55:48,628 [66 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. WARN 2019-08-01 01:55:48,629 [66 ] calization.RequestLocalizationMiddleware - AbpUserRequestCultureProvider returned the following unsupported cultures 'null'. WARN 2019-08-01 01:55:48,629 [66 ] calization.RequestLocalizationMiddleware - AbpUserRequestCultureProvider returned the following unsupported UI Cultures 'null'. WARN 2019-08-01 01:55:48,629 [66 ] calization.RequestLocalizationMiddleware - AbpDefaultRequestCultureProvider returned the following unsupported cultures 'null'. WARN 2019-08-01 01:55:48,629 [66 ] calization.RequestLocalizationMiddleware - AbpDefaultRequestCultureProvider returned the following unsupported UI Cultures 'null'. INFO 2019-08-01 01:55:48,629 [66 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'Soffa.Configuration.Host.HostSettingsAppService.GetAllSettings (Soffa.Application)' INFO 2019-08-01 01:55:48,635 [66 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {area = "app", action = "GetAllSettings", controller = "HostSettings"}. Executing action Soffa.Configuration.Host.HostSettingsAppService.GetAllSettings (Soffa.Application) INFO 2019-08-01 01:55:48,635 [66 ] pNetCore.Cors.Infrastructure.CorsService - CORS policy execution successful. INFO 2019-08-01 01:55:48,643 [66 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Soffa.Configuration.Host.HostSettingsAppService.GetAllSettings (Soffa.Application) - Validation state: Valid INFO 2019-08-01 01:55:48,646 [66 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method Soffa.Configuration.Host.HostSettingsAppService.GetAllSettings (Soffa.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 3.3601ms. INFO 2019-08-01 01:55:48,650 [120 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://185.187.94.224:8888/api/services/app/CommonLookup/GetEditionsForCombobox?onlyFreeItems=false
INFO 2019-08-01 01:55:48,650 [120 ] pNetCore.Cors.Infrastructure.CorsService - CORS policy execution successful. INFO 2019-08-01 01:55:48,651 [120 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. WARN 2019-08-01 01:55:48,651 [120 ] calization.RequestLocalizationMiddleware - AbpUserRequestCultureProvider returned the following unsupported cultures 'null'. WARN 2019-08-01 01:55:48,651 [120 ] calization.RequestLocalizationMiddleware - AbpUserRequestCultureProvider returned the following unsupported UI Cultures 'null'. WARN 2019-08-01 01:55:48,651 [120 ] calization.RequestLocalizationMiddleware - AbpDefaultRequestCultureProvider returned the following unsupported cultures 'null'. WARN 2019-08-01 01:55:48,651 [120 ] calization.RequestLocalizationMiddleware - AbpDefaultRequestCultureProvider returned the following unsupported UI Cultures 'null'. INFO 2019-08-01 01:55:48,651 [120 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'Soffa.Common.CommonLookupAppService.GetEditionsForCombobox (Soffa.Application)' INFO 2019-08-01 01:55:48,657 [66 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'. INFO 2019-08-01 01:55:48,658 [66 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Soffa.Configuration.Host.HostSettingsAppService.GetAllSettings (Soffa.Application) in 22.8757ms INFO 2019-08-01 01:55:48,658 [66 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'Soffa.Configuration.Host.HostSettingsAppService.GetAllSettings (Soffa.Application)' INFO 2019-08-01 01:55:48,658 [66 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 30.3197ms 200 application/json; charset=utf-8 INFO 2019-08-01 01:55:48,661 [120 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {area = "app", action = "GetEditionsForCombobox", controller = "CommonLookup"}. Executing action Soffa.Common.CommonLookupAppService.GetEditionsForCombobox (Soffa.Application) INFO 2019-08-01 01:55:48,661 [120 ] pNetCore.Cors.Infrastructure.CorsService - CORS policy execution successful. INFO 2019-08-01 01:55:48,669 [120 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Soffa.Common.CommonLookupAppService.GetEditionsForCombobox (Soffa.Application) with arguments (False) - Validation state: Valid INFO 2019-08-01 01:55:48,678 [57 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method Soffa.Common.CommonLookupAppService.GetEditionsForCombobox (Soffa.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 9.0693ms. INFO 2019-08-01 01:55:48,692 [57 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'. INFO 2019-08-01 01:55:48,693 [57 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Soffa.Common.CommonLookupAppService.GetEditionsForCombobox (Soffa.Application) in 31.1736ms INFO 2019-08-01 01:55:48,693 [57 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'Soffa.Common.CommonLookupAppService.GetEditionsForCombobox (Soffa.Application)' INFO 2019-08-01 01:55:48,693 [57 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 42.5933ms 200 application/json; charset=utf-8 INFO 2019-08-01 01:55:56,973 [74 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS http://185.187.94.224:8888/api/services/app/HostSettings/UpdateAllSettings
INFO 2019-08-01 01:55:56,973 [74 ] pNetCore.Cors.Infrastructure.CorsService - CORS policy execution successful. INFO 2019-08-01 01:55:56,974 [74 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.3141ms 204 -
0
add this to web.config:
<system.webServer> <modules runAllManagedModulesForAllRequests="false"> <remove name="WebDAVModule" /> </modules> </system.webServer>
-
0
web.config of the web or angular?
-
0
The Host website.
-
0
yes done thanks