angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

$Resource Cross Domain (CORS) in IE8,9: Access is denied

Open buihoanghai opened this issue 12 years ago • 4 comments

I'm getting an 'Error: Access is denied' in my debugging console in IE8,9. This works on other browsers. How can i solve this issue

buihoanghai avatar Apr 11 '14 03:04 buihoanghai

Hi @buihoanghai CORS is only partially supported in IE8,9 via the XDomainRequest object.

lefos987 avatar Apr 11 '14 16:04 lefos987

tks @lefos987 I try to use jsonp. And it's ok but only for method GET.

buihoanghai avatar Apr 13 '14 12:04 buihoanghai

JSONP only supports GET as far as I know. In any case this does not seem to be a problem with Angular's $resource so I will close this issue for now. Feel free to let us know if there is still something you think is not working with $resource and will reopen.

lefos987 avatar Apr 13 '14 20:04 lefos987

it's impossible for JSONP to support anything other than GET requests, because JSONP is literally just adding a to the document. So you're right about that.

caitp avatar Apr 14 '14 01:04 caitp