AJAX Error: TypeError: 'arguments', 'callee', and 'caller' cannot be accessed in this context

狂风中的少年 提交于 2020-08-07 17:09:09

问题


I'm doing an API call on a system and am receiving this error. I can get a response with curl and Postman with the same URL, but safari throws this error when using Angular's $http.get() method.

This will also work in production. The error only occurs during development.

Searching this error turns up similar, but different questions.


回答1:


I found out that this error is actually a X-origin issue.

If you are only experiencing this during Dev, in Safari, just disable X-origin restrictions in the Develop menu. Otherwise, from here, you can find a few solutions on handling X-origin issues. But at least now you'll know a possible cause of the error.

I hope this helps someone!



来源:https://stackoverflow.com/questions/47871301/ajax-error-typeerror-arguments-callee-and-caller-cannot-be-accessed-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!