“Permission denied” with Internet Explorer and jQuery

后端 未结 3 1884
抹茶落季
抹茶落季 2020-12-01 07:41

I try to do an AJAX call with jQuery and $.post in Internet Explorer, but all I get is an error saying \"Permission denied\". The problem is kinda weird since i

相关标签:
3条回答
  • 2020-12-01 08:28

    In my case, changing the jquery version worked. Instead of using version 1.9.1, now I'm using 1.12.4 and it works.

    0 讨论(0)
  • 2020-12-01 08:33

    If its local (localhost), then for security reasons you have to have the full path.

    0 讨论(0)
  • 2020-12-01 08:36

    From the post on jquerys forum here, you have to have the content type meta as the first item in your head tag.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"> 
        <head> 
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <script type="text/javascript" src="/ietest/jquery.js"></script> 
            <script type="text/javascript" src="/ietest/test.js"></script>  
        </head> 
        <body> 
            <a href="#">Test</a>
        </body> 
    </html>
    
    0 讨论(0)
提交回复
热议问题