How to bypass CORS (Cross-Origin Resource Sharing) issue using headers or json-p


CORS issue is one of the common issue faced by new developers who need to access a REST API of their project using javascript. I have tried to explain the solution in best possible manner and hope that the above information was quite useful for anyone who is facing Cross Origin request issue.

As a disclaimer, I am not an expert in this topic and the above article is constructed based on the information I got from different sources and from my personal experience. If any of the above information is wrong or needs to be corrected, please do let me know through the comments section.

Swaroop Shankar V


  1. You can also check the open source program [Bypass Cors](https://chrishham.github.io/BypassCors/) ,
    an installable Electron App (Windows/Mac/Linux), that lets you Bypass ALL CORS Restrictions permanently,
    by allowing you to set your own custom Headers (+Origin).

    It is specifically designed to work with Web Apps and its perfect for Real Time Scraping.

    Disclaimer: I am the author of the program.

    • Thanks, Christopher, your project looks interesting. Will give it a try

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.