Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Web Request with IAS via AJAX

jiang__chao
Beginner
306 Views

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