SCRIPT5: Access Denied. In IE when using parse.js

Hi, I am getting an error below IE. When uploading images to parse.com.

Works fine in chrome and firefox and safari

works with jquery 1.10.0.js

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script> <script type="text/javascript" src="https://www.parsecdn.com/js/parse-1.2.8.min.js"></script> 

Error with this code snippet below.

  **parseFile.save().then(function(data) {** console.log("success"); }, function(error) { console.log("Error"); console.log(error); }); 

Error Console:

Error Description

+4
source share
2 answers

Solved by commenting out these lines in the Parse._ajax method from the parse-1.2.8.js js file

  if (typeof(XDomainRequest) !== "undefined") { return Parse._ajaxIE8(method, url, data)._thenRunCallbacks(options); } 
+1
source

IE has a really annoying bug (function?), Which if you try to use parse.com (or any other similar technology) via HTTPS, but your site is on HTTP, you will get errors.

Any other browser works.

The only solution is to host your site using HTTPS if you want IE users to be able to use it.

+1
source

Source: https://habr.com/ru/post/1495382/


All Articles