Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

IntelAppPreview breaks XMLHttpRequest with statuses != 200

Andrea_C_
New Contributor I
520 Views

Hi all,

I noticed that Intel AppPreview patches the XMLHttpRequest with its own implementation with the file OverrideXMLHttpRequest.js.

This patch makes every request with status code != 200 having status == 200.

Obviously this breaks my app in testing phase, so the only way to test my app is building it through your servers.

I am asking: why AppPreview is patched? Is it possible to remove this patch? I think that the best thing to do would be adding this kind of patches  by the end users and not by AppPreview. 

0 Kudos
1 Reply
Rakshith_K_Intel
Employee
520 Views

 

If the attribute "data-noxhrfix" is present in the head tag, the XHR override script tag is not inserted into the html file.
e.g., <head data-noxhrfix>

Are you seeing the issue when making a http:// call? 
This is to workaround a specific issue with file:// URLs that are not in the assets directory. I think this is applied for http:// as well, we can restrict it to only file:// in next release.

 

 

0 Kudos
Reply