Getting "Cross-Origin Request Blocked" error while calling Create ticket API In react | Community
Skip to main content

Getting "Cross-Origin Request Blocked" error while calling Create ticket API In react

  • March 2, 2021
  • 0 replies
  • 0 views

Hello Team,

I got error CORS Error while calling create ticket API in  ReactJS using Axios. In normal chrome window it's working fine but In Incognito mode and Other browser like Mozilla I am getting same error. 

1. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "Zendesk API URL" (Reason: header ‘access-control-allow-headers’ is not allowed according to header ‘Access-Control-Allow-Headers’ from CORS preflight response).

2. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at"Zendesk API URL". (Reason: CORS request did not succeed)

Please help me through it.
Thank you