1 Answer
New AnswerI am using react framework and connecting to django for making API requests, but due to the development servers of the two frameworks, running on different 'domains' the browser will not allow the request unless there is an access control allow origin header. I don't know if I have done it correctly but I only thought that declaring the environment variables in react would do the trick. I am not sure on how to enable the access-control-allow-origin header on my requests. Is there something I need to do on the side of django or not?
9/15/2020 6:09:01 AM
prime omondi1 Answer
New AnswerSololearn Inc.
535 Mission Street, Suite 1591Send us a message