I added
config.EnableCors(new EnableCorsAttribute(Properties.Settings.Default.Cors, "", ""))
as well as
app.UseCors(CorsOptions.AllowAll);
on the server. This results in two header entries. Just use the latter one and it works.
Related Posts:
- What is the difference between a web API and a web service?
- Failed to load resource: the server responded with a status of 401 (Unauthorized) /App/AngularJS/angular.min.js
- HTTP Error 503, the service is unavailable
- Why does my JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not?
- No ‘Access-Control-Allow-Origin’ header is present on the requested resource—when trying to get data from a REST API
- How does Access-Control-Allow-Origin header work?
- Cross-Origin Read Blocking (CORB)
- How to resolve “Server Error in ‘/’ Application” error?
- Cross-Origin Read Blocking (CORB)
- Chrome returns “Bad Request – Request Too Long” when navigating to local IIS Express
- Why does my JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not?
- How to fix No connection could be made because the target machine actively refused it 127.0.0.1:64527
- What does ‘IISReset’ do?
- What does ‘IISReset’ do?
- “Exception has been thrown by the target of an invocation” error (mscorlib)
- ORA-12154 could not resolve the connect identifier specified
- How to enable CORS in flask
- What are .ashx files in an ASP.NET application?
- Does PHP supports MVP pattern?
- WCF vs ASP.NET Web API
- how to call jquery selector from outside kendo window?
- Net 2.0 Framework Service Pack 2 Issue
- Refused to display in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’
- Server.Transfer Vs. Response.Redirect
- W3WP.EXE using 100% CPU – where to start?
- HTTP Error 403.14 – Forbidden – The Web server is configured to not list the contents of this directory
- Error :The remote server returned an error: (401) Unauthorized
- Exception of type ‘System.OutOfMemoryException’ was thrown.
- Refused to display in a frame because it set ‘X-Frame-Options’ to ‘SAMEORIGIN’
- Cannot read configuration file due to insufficient permissions
- Axios having CORS issue
- The requested resource does not support HTTP method ‘GET’
- Differences between Html.TextboxFor and Html.EditorFor in MVC and Razor
- Response to preflight request doesn’t pass access control check
- A potentially dangerous Request.Form value was detected from the client
- How to resolve ‘preflight is invalid (redirect)’ or ‘redirect is not allowed for a preflight request’
- How to remove error about glyphicons-halflings-regular.woff2 not found
- How to add reference to System.Web.Optimization for MVC-3-converted-to-4 app
- Could not load file or assembly ‘Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed’
- What is ViewModel in MVC?
- How to Determine IUSR Password
- ASP.NET Why are sessions timing out, sessionstate timeout set
- XMLHttpRequest cannot load XXX No ‘Access-Control-Allow-Origin’ header
- What does aspnet_regiis.exe do
- javascript “window.history.forward(1);” not working
- drop down list value in asp.net
- Cannot read configuration file due to insufficient permissions
- Access-Control-Allow-Origin Multiple Origin Domains?
- Can you recommend a .net template engine?
- Can’t Add View from Controller in VS 2015 : “There was an error running the selected code generator”
- How do I resolve “HTTP Error 500.19 – Internal Server Error” on IIS7.0
- Asp.net Hyperlink control equivalent to
- Error ‘2035’ (‘MQRC_NOT_AUTHORIZED’) While Connecting to MQ
- debug=true in web.config = BAD thing?
- Url.Action parameters?
- What is the difference between ASP.NET and ASP.NET MVC?
- HTTP Error 500.19 and error code : 0x80070021
- What’s the point of the X-Requested-With header?
- Access-Control-Allow-Origin error sending a jQuery Post to Google API’s
- The following sections have been defined but have not been rendered for the layout page “~/Views/Shared/_Layout.cshtml”: “Scripts”
- Access-Control-Allow-Origin error sending a jQuery Post to Google API’s
- The following sections have been defined but have not been rendered for the layout page “~/Views/Shared/_Layout.cshtml”: “Scripts”
- ASP.NET DateTime Picker
- Trying to use fetch and pass in mode: no-cors
- Why should I use IHttpActionResult instead of HttpResponseMessage?
- Could not load file or assembly ‘Microsoft.CodeDom.Providers.DotNetCompilerPlatform
- Origin null is not allowed by Access-Control-Allow-Origin
- a page can have only one server-side form tag
- Access to Image from origin ‘null’ has been blocked by CORS policy
- “This operation requires IIS integrated pipeline mode.”
- Could not load file or assembly ‘Microsoft.ReportViewer.WebForms’
- Maximum request length exceeded.
- How to get a cross-origin resource sharing (CORS) post request working
- Could not load file or assembly Exception from HRESULT: 0x80131040
- How to connect signalR from angularJs
- The localhost page isn’t working. localhost redirected you too many times
- What is the @Html.DisplayFor syntax for?
- Response Content type as CSV
- Unrecognized attribute ‘targetFramework’. Note that attribute names are case-sensitive
- How to allow CORS in react.js?
- The required anti-forgery form field “__RequestVerificationToken” is not present Error in user Registration
- Authorization has been denied for this request – New Web API Project
- “Cross origin requests are only supported for HTTP.” error when loading a local file
- “Cross origin requests are only supported for HTTP.” error when loading a local file
- How to enable CORS in AngularJs
- Why does my http://localhost CORS origin not work?
- IIS error, Unable to start debugging on the webserver
- How to move div vertically down using CSS
- How to troubleshoot “System.Web.HttpException (0x80004005): File does not exist”?
- Effectively use async/await with ASP.NET Web API
- jquery $(this).id return Undefined
- How handle Application Error Exception code: 0xc00000fd
- C# function to return array
- “The transaction log for database is full due to ‘LOG_BACKUP'” in a shared host
- AngularJS POST Fails: Response for preflight has invalid HTTP status code 404
- jQuery UI ” $(“#datepicker”).datepicker is not a function”
- How do I add Access-Control-Allow-Origin in NGINX?