-1

I have a very annoying problem. i've tried all method to solve but all doesnt work. I start my local reactjs frontend project, i want to communicate with backend that hosted locally in the same computer. This is my react start command : enter image description here

I've set 'Access-Control-Allow-Origin' headers too. enter image description here

It seems put headers to axios doesnt change anything. How to solve this? coz i cant continue my project because of this problem.

Galih laras prakoso
  • 689
  • 2
  • 7
  • 22
  • 1
    Possible duplicate of [XMLHttpRequest cannot load XXX No 'Access-Control-Allow-Origin' header](https://stackoverflow.com/questions/35553500/xmlhttprequest-cannot-load-xxx-no-access-control-allow-origin-header) – Quentin Mar 23 '19 at 15:39
  • It doesn't work because the headers must be set on the server, not in the client. – JJJ Mar 24 '19 at 12:49

1 Answers1

-3

OMG.. just found a great solution. What i need to do is just install this chrome extension : https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf

Galih laras prakoso
  • 689
  • 2
  • 7
  • 22