Solution to Flipkart Affiliate API Cross Origin Error – CORS Issue

Hi, today I ran into flipkart affiliate api cross origin error:

flipkart affiliate api cross origin error, flipkart affiliate api, cross origin error, cors issue
Access to fetch at ‘https://affiliate-api.flipkart.net/affiliate/1.0/product.json?id=TABG6AGQGXABVXMW’ from origin ‘http://localhost:3000’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status.

After trying many solutions, found an easy way to access the API from localhost:

Open Chrome browser in no security mode:
– Open command prompt
– run “chrome.exe –user-data-dir=”C:/Chrome dev session” –disable-web-security

Leave a Comment

Your email address will not be published.