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

回答済み


投稿日時:2021年3月03日

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 


0

1

1件のコメント

Hi aumtrivedi,

It sounds like your browser settings might be blocking third party cookies. Third Party cookies is normally blocked by default when using an incognito window in Chrome. I would recommend to try disabling this and then testing again.

Your Firefox may also be block third party cookies so I'd recommend checking to ensure its set to allow all cookies as well.

Hopefully that helps to get things working as needed for you!

0


この投稿のコメント欄は閉じられています。

お探しのものが見つかりませんか?

新規投稿