NETWORK_ERROR: XMLHttpRequest Exception 101

后端 未结 7 2058
南旧
南旧 2020-11-30 07:45

I am getting this Error

NETWORK_ERROR: XMLHttpRequest Exception 101

when trying to get XML content from one site.

Here

7条回答
  •  暖寄归人
    2020-11-30 08:04

    If the url you provide is located externally to your server, and the server has not allowed you to send requests, you have permission problems. You cannot access data from another server with a XMLHttpRequest, without the server explicitly allowing you to do so.

    Update: Realizing this is now visible as an answer on Google, I tried to find some documentation on this error. That was surprisingly hard.

    This article though, has some background info and steps to resolve. Specifically, it mentions this error here:

    As long as the server is configured to allow requests from your web application's origin, XMLHttpRequest will work. Otherwise, an INVALID_ACCESS_ERR exception is thrown

    An interpretation of INVALID_ACCESS_ERR seems to be what we're looking at here.

    To solve this, the server that receives the request, must be configured to allow the origin. This is described in more details at Mozilla.

提交回复
热议问题