- Home
- Forum
- ASP.NET MVC - EJ 2
- CORS error
CORS error
Hi Team,
We are experiencing CORS error at random times in File manager control. If we restart the site problem get solved but appears again later. we are using Chrome browser.
Please suggest if you have any recommendations in identifying the root cause.
Thank you
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
SS
Sharon Sanchez Selvaraj
Syncfusion Team
February 11, 2021 01:36 PM UTC
Hi Mahesh,
Thanks for contacting Syncfusion support.
We checked the reported scenario but we were unable to replicate your issue. However, we suggest you to follow the below step to overcome the CORS issue.
Kindly insert this following snippet into your Web.config file of your MVC application.
|
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Content-Type" />
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
</customHeaders>
</httpProtocol>
|
Please get back to us if you need any further assistance.
Regards,
Sharon Sanchez S.
MM
Mahesh Machina
February 12, 2021 02:26 PM UTC
Thanks Sharon for quick response.
Attachment: File_Manager_error_4327d08d.zip
I have these configured already, but we still face CORS error intermittently. Even in your website i found this issue.
Please find the same attached
Attachment: File_Manager_error_4327d08d.zip
SS
Sharon Sanchez Selvaraj
Syncfusion Team
February 15, 2021 09:03 AM UTC
Hi Mahesh,
We have checked your reported issue in the provided site, but we were unable to replicate it in our end. Files are loaded correctly within FileManager.
Please check with the below screenshot for your reference.
|
|
Ensure the network connectivity once in your end and to know more about CORS error, please check the below links.
Please get back to us if you need any further assistance.
Regards,
Sharon Sanchez S.
Marked as answer
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
- Marked answer
-
MM Mahesh Machina
- Feb 10, 2021 08:33 AM UTC
- Feb 15, 2021 09:03 AM UTC