Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,160,399 members, 7,843,165 topics. Date: Tuesday, 28 May 2024 at 07:42 PM |
Nairaland Forum / Science/Technology / Programming / How Can I Solve This Cors Policy Problem In My React App (291 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)
How To Set Up VPN In Nigeria To Use Twitter / Help!! My Facebook Account Was Suspended After Going For Three Days Without..... / Cryptocurrency/ Bitcoin Trading
(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. 6 |