Navigate back to the homepage

Solve CORS issue on localhost

Infinitbility
Security
December 26th, 2020 · 1 min read
Solve CORS issue on localhost

Hello Friends,

Welcome To Infinitbility!

Many time we get cors issue when we are developing a website. like below

Access to fetch at ’http://dummy.restapiexample.com/api/v1/create’ from origin ’http://localhost:300’ has been blocked by CORS policy: Request header field content‑type is not allowed by Access‑Control‑Allow‑Headers in preflight response.

I try many extensions, adding mode: cors, and added Access‑Control‑Allow‑Headers on the server but my issue not solved, then I try the “CORS” extension, and my cors issue resolve. below you will find the extension link and step to use on your machine.

below solution use only when you developing a website on your local machine. don’t use for production.

bypass the authentication

Download Extensions Link https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf

After add, the CORS extension activates your extension.

bypass the authentication

if you get help, please share a post on your social network

Looking For React Native Tutorial?

we are trying to create the best Tutorial for react native developers.

When you want a daily updates about React Native Tutorial or infinitbility update subscribe to our newsletter.

Read React Native Tutorial

Request New Tutorial or Article on mail [email protected]

Join our email list and get notified about new content

No worries, I respect your privacy and I will never abuse your email.

Every week, on Tuesday, you will receive a list of free tutorials I made during the week (I write one every day) and news on other training products I create.

More articles from Infinitbility

Authentication Bypass what is it and how to protect it

Authentication Bypass what is it and how to protect it

Applications require some credentials for example Username, Email, Password, etc. To get access to the system.

December 12th, 2020 · 2 min read
Implement react native firebase crashlytics on android

Implement react native firebase crashlytics on android

setup firebase crashlytics for your react native application.

December 12th, 2020 · 1 min read
© 2020–2021 Infinitbility
Disclaimer
Link to $https://medium.com/infinitbilityLink to $https://www.facebook.com/InfinitbilityLink to $https://github.com/infinitbilityLink to $https://twitter.com/infinitbilityLink to $https://www.buymeacoffee.com/infinitbilityLink to $mailto:[email protected]