My Sites


Sunday, July 5, 2015

“No 'Access-Control-Allow-Origin' header is present on the requested resource” SOLUTION

XMLHttpRequest cannot load http://myApiUrl/login. No
'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'null' is therefore not allowed access.
//Create a parseData json object
var parseData = {token : userToken};

var request = $.ajax({
        url: "http://localhost:8080/configurations/authenticate",
        type: "post",
        data: parseData
    });

http://davidwalsh.name/cdn-fonts
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://grid-static-stg.pearson.com/57-mlpui/0.0.4/assets/fonts/pearson-symbols/pearson-symbols.ttf. (Reason: CORS header 'Access-Control-Allow-Origin' missing).

 

1 comment: