programming

How to use a CORS proxy to avoid “No Access-Control-Allow-Origin header” problems

If you want to solve the Access-Control-Allow-Orgin header problems, you can setup the cors proxy. You can make your own cors proxy server or you can use online servers also.

You can easily setup your cors proxy server with these steps

  • Clone the repository

  • Go to cors Folder

  • Install the node modules

  • Create the heroku server

  • Push the code to heroku server

With this steps you can easily setup your cors proxy server and also deployed on the heroku server. After running these commands, your cors proxy server running at e.g https://cors-proxy-94862.herokuapp.com

Now add the proxy URL at the start of API URL in your application. E.g https://cors-proxy-94861.herokuapp.com/https://example.com. With this you can access your the third party api without cors issues.

 

Cool Dev

View Comments

  • Hi there to every body, it's my first pay a visit of this weblog; this website includes awesome
    and in fact good information for visitors.

Recent Posts

Bash Script Basics Tutorial: #1

Bash Script Basics Bash scripting is a powerful way to automate tasks in Linux. This…

1 year ago

Screen vs Tmux: Which One to Choose?

Screen vs Tmux Both screen and tmux are popular terminal multiplexers that allow you to…

1 year ago

How to Use nohup

How to Use nohup The nohup command allows you to run a script or command…

1 year ago

Running Bash script in background

Running Bash script in background Running Bash script in the background is useful for executing…

1 year ago

How do I make Git ignore file mode (chmod)?

How do I make Git ignore file mode (chmod)? Git is a powerful version control…

1 year ago

Setup Tailwind CSS with Angular 11

Install tailwind css with npm Run the following command to install tailwind css npm install…

3 years ago

This website uses cookies.