Django/react Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response

I am building a website using django as purely a server and React. I am getting the error Access to XMLHttpRequest at ‘http://localhost:8000/dividends/current_yield/hd’ from origin ‘http://localhost:3000′ has been blocked by CORS policy: Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response. so far i’ve tried Redirect is not allowed for a preflight… Read More Django/react Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response