We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Require help to resolve issue In blazor web assembly project getting CORS error

I am using File Upload Control in blazor web assembly project.
And using .Net 4.6 Web API 2.0 

I am getting CORS Error even if there is CORS setting there in API.

Image file getting stored on Server after that it gives CORS Error


WebAPI Config Setting



All API Call works fine but only file upload giving CORS error on local as well as server

1 Reply 1 reply marked as answer

SP Sureshkumar P Syncfusion Team December 23, 2020 09:39 AM UTC

Hi Hemant, 
 
Greetings from Syncfusion support. 
 
To resolve the CORS issue in Blazor WebAssembly Application, we suggest you add httpRequest.SetBrowserRequestMode(BrowserRequestMode.Cors)) to your application. 
 
To know more about this issue, please refer the common documentation links. 
 
Regards, 
Sureshkumar P 


Marked as answer
Loader.
Live Chat Icon For mobile
Up arrow icon