Interface cross-domain problem

Interface cross-domain problem

Set request header parameters

header("Access-Control-Allow-Origin:*");
header("Access-Control-Allow-Headers: Authorization, Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, X-Requested-By, If-Modified-Since, X-File-Name, X-File-Type, Cache-Control, Origin");

Guess you like

Origin blog.csdn.net/Wonder_BBJ/article/details/107909739