Cross-Origin Request Headers(CORS) with PHP headers

后端 未结 11 1502
情书的邮戳
情书的邮戳 2020-11-21 11:13

I have a simple PHP script that I am attempting a cross-domain CORS request:



        
11条回答
  •  抹茶落季
    2020-11-21 11:53

    This much code works down for me when using angular 4 as the client side and PHP as the server side.

    header("Access-Control-Allow-Origin: *");
    

提交回复
热议问题