Safari fails on request to a non-authenticated API #8672
Comments
Hi @coryshaw1 --- could you please post a complete reproduction (http://plnkr.co/, http://jsbin.com/) so we can see what you're seeing? thanks. |
Plunker isn't working at the moment so here is a JsBin link: http://jsbin.com/qeqoketaheki/1/edit?html,output I am following John Papa's AngularJS style guide (other than file structure for time's sake) |
Looks like a CORS issue --- https://github.com/WebKit/webkit/search?utf8=%E2%9C%93&q=%22Cannot+make+any+requests+from+null.%22&type=Code error shows up in CORS tests in webkit. It's admittedly a pretty terrible error message that doesn't make a lot of sense, but yeah. I'll take a look on the webkit issue tracker to see if there's more info about why this is failing in webkit and working in other browsers. |
Thanks @caitp ! I will say that after lots of testing, it seems to work if I don't wrap each controller/service/etc. in a self-invoking function. |
I don't think it's actually related to CORS, it looks like an issue with sandboxing --- but I'm not sure how that repro is treated as sandboxed in non-edit mode. we'll see. Might be related to getting |
It might be easier for you to fork or clone my project ng-soundcloud-playlist. Just |
I suggest you file a bug https://bugs.webkit.org/ --- feel free to link it here or CC me directly |
I filed a bug here: https://bugs.webkit.org/show_bug.cgi?id=136081 I also CC'd your Github email. Thanks again. |
Closing since this is a WebKit issue and not related to Angular. |
...
When attempting to make a
$http.get
request in Safari that is the console output. This same get request works in all other major browsers.The text was updated successfully, but these errors were encountered: