I am getting these errors when someone attempts to open my app in IE. I get a popup asking to Allow Blocked Content, and when this is clicked everything works fine. Is there anyway I can go about enabling CORS to bypass clicking Allow Blocked Content?
SEC7118: XMLHttpRequest for http://services.arcgisonline.com/ArcGIS/rest/info?f=json required Cross Origin Resource Sharing (CORS). EDDM_API.html SEC7120: Origin file: not found in Access-Control-Allow-Origin header. EDDM_API.html SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied. EDDM_API.html SEC7118: XMLHttpRequest for http://static.arcgis.com/attribution/World_Street_Map?f=json required Cross Origin Resource Sharing (CORS). EDDM_API.html
Searching the web I found this bit of code, just unaware of where to put it in my script, or if it will even solve my problem.
// Script running on http://eddmapi-dev.usps.gov/eddmapi/eddm_api.html var xhr = new XMLHttpRequest(); xhr.onerror = _handleError; xhr.onload = _handleLoad; xhr.open("GET", "http://eddmapi-dev.usps.gov/eddmapi/eddm_api.html", true); xhr.send();