php solve cross domain problem

 

Just add these two sentences when returning data in the background

header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:GET,POST,PATCH,PUT,OPTIONS');

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324813485&siteId=291194637