Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

CORS Origin Blocked url on Update #7432


User avatar
0
nathaliewehbe created

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)
  • User Avatar
    0
    maliming created
    Support Team
    • What is your product version?
    • What is your product type (Angular or MVC)?
    • What is product framework type (.net framework or .net core)?
  • User Avatar
    0
    nathaliewehbe created
    1. Version 6.9
    2. Angular
    3. .net core
  • User Avatar
    0
    maliming created
    Support Team

    please share the cors error message in the browser console.

    Have you modified the built-in CORS code? If you have not made any changes, you can configure your domain name in appsettings.json

  • User Avatar
    0
    nathaliewehbe created

    I already update because its working for login and to create and delete but on update

  • User Avatar
    0
    maliming created
    Support Team

    Very strange, can you look at the logs of the backend application?

  • User Avatar
    0
    nathaliewehbe created

    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

  • User Avatar
    0
    maliming created
    Support Team

    add this to web.config:

    <system.webServer>
      <modules runAllManagedModulesForAllRequests="false">
        <remove name="WebDAVModule" />
      </modules>
    </system.webServer>
    
  • User Avatar
    0
    nathaliewehbe created

    web.config of the web or angular?

  • User Avatar
    0
    maliming created
    Support Team

    The Host website.

  • User Avatar
    0
    nathaliewehbe created

    yes done thanks