Community
cancel
Showing results for 
Search instead for 
Did you mean: 
jiang__chao
Beginner
50 Views

Web Request with IAS via AJAX

Hi,

I have already run the sample code successfully by referencing document https://software.intel.com/en-us/articles/intel-software-guard-extensions-remote-attestation-end-to-end-example. When I try to get response from IAS with url(https://test-as.sgx.trustedservices.intel.com/attestation/sgx/v1/sigrl/myGID) through AJAX, it does response success (Status Code: 200 OK) if I set my request dataType: "jsonp". Still, I cannot find a way to access the response header and content.

If I did not set my request dataType or set dataType="json", error shows "XMLHttpRequest cannot load https://test-as.sgx.trustedservices.intel.com/attestation/sgx/v1/sigrl/myGID. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://mydomain.com' is therefore not allowed access."

Regards,

Chao

0 Kudos
0 Replies
Reply