Cross Domain AJAX Request:Error blocked by CORS policy: No 'Access-Control-Allow-Origin' header

Cross Domain AJAX Request

Access to XMLHttpRequest at 'https://xxxxxxxxx' from origin 'http://xx.xx.xx' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Failed to load resource: net::ERR_FAILED

Error: CORS header ‘Access-Control-Allow-Credentials’


Step 1: If your site is secure and make sure you are calling https URL on ajax call otherwise http would work.
Step 2: In Ajax call set CrossOrigin=True


Popular posts from this blog

What is Aws?

Introduction to Agile development