jsonp function not working
I am receiving the below error on client site. I am using jsonp and a callback function. These are the headers I have set
Refused to execute script from 'http://example.com/wp-content/plugins/plugin-name/includes/core-file.php" because its MIME type ('access-control-allow-methods: get') is not executable, and strict MIME type checking is enabled.
I have set these headers under my plugin core file.
//Typical headers
header('Content-Type: text/html');
header( "content-type: text/javascript; charset=utf-8" );
send_nosniff_header();
//Allow Cross-Origin Resource Sharing
header("Access-Control-Allow-Origin: *");
header("content-type: Access-Control-Allow-Methods: GET");
Please, can some one help me to resolve this! relevant link
链接地址: http://www.djcxy.com/p/47606.html上一篇: 为什么Spring的ReflectionUtils被标记为“仅限内部使用”?
下一篇: jsonp函数不起作用