问题
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