XMLHttpRequest cannot load – Origin is not allowed by Access-Control-Allow-Origin.

php:

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

java:

       response.setHeader("Access-Control-Allow-Origin", "*");


你可能感兴趣的:(XMLHttpRequest cannot load – Origin is not allowed by Access-Control-Allow-Origin.)