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');
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');