The 'Access-Control-Allow-Origin' header has a value 'http://localhost:4200' that is not equal to the supplied origin

前端 未结 7 2455
清酒与你
清酒与你 2020-12-20 12:33

(continuation of error message in title) \" Origin \'http://127.0.0.1:4200\' is therefore not allowed access.\"

I am unable to run the same Angular 5 site on two dif

相关标签:
7条回答
  • 2020-12-20 13:16

    add this in your public/index.php file

    header('Access-Control-Allow-Origin: *');
    
    0 讨论(0)
提交回复
热议问题