Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,773 members, 7,802,373 topics. Date: Friday, 19 April 2024 at 01:11 PM

How Can I Solve This Cors Policy Problem In My React App - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How Can I Solve This Cors Policy Problem In My React App (285 Views)

Backend Devs Please Help Me With A Cors Error / My React Portfolio Website / My React Single Page For Small Start Up Business (Request Web App - No Backend ) (2) (3) (4)

(1) (Reply)

How Can I Solve This Cors Policy Problem In My React App by FlackoJodye: 9:51am On Apr 25, 2021
I need help.. Please how can i solve this cors problemm.

Re: How Can I Solve This Cors Policy Problem In My React App by SpaceTime: 12:01pm On Apr 25, 2021
Either Allow Anonymous in your backend code or restart your system.
That's what I do whenever I have CORS error in my codebase.
Re: How Can I Solve This Cors Policy Problem In My React App by niel63(m): 12:23pm On Apr 25, 2021
The server that hosts the resource needs to have CORS enabled
This sometime happens when you are using fetch() for your APIs
You should try using axios. It takes care of that for you.

You can read through these:
https://www.pluralsight.com/guides/allow-access-control-origin-in-create-react-app


https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch

(1) (Reply)

Let Me Be Your Reliable Picker For All Your Country GIFT CARD At Dope Rate / PELSSA1000: Make Money Creating & Selling Digital Assets, Join The Club / Eastwest Properties - Property For Sale

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 5
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.