SEC7118: XMLHttpRequest CORS - IE Console message

后端 未结 4 2133
暗喜
暗喜 2021-02-07 02:40

I am using CORS POST request with everything taken care as given @http://www.html5rocks.com/en/tutorials/cors/

Server sets Response header to: \'Access-Control-Allow-Ori

4条回答
  •  情歌与酒
    2021-02-07 02:58

    I have seen this error in IE11:

    SEC7118: XMLHttpRequest for http:// required Cross Origin Resource Sharing (CORS)

    Adding the following to my .htaccess fixed it:

    
        
            
                SetEnvIf Origin ":" IS_CORS
                Header set Access-Control-Allow-Origin "*" env=IS_CORS
            
        
    
    

    Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image

提交回复
热议问题