Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upElaborating the arguments to Http.request for CORS support #61
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
roobie
Jan 15, 2016
Has there been no update on this issue? I am asking because I am facing similar challenges. Maybe I'm just missing something, and if so, please tell.
roobie
commented
Jan 15, 2016
|
Has there been no update on this issue? I am asking because I am facing similar challenges. Maybe I'm just missing something, and if so, please tell. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
Feb 4, 2016
Contributor
Does http://package.elm-lang.org/packages/lukewestby/elm-http-extra/latest/ address your issues?
|
Does http://package.elm-lang.org/packages/lukewestby/elm-http-extra/latest/ address your issues? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
May 11, 2016
Member
Not sure if evancz/elm-http or others solve this, but it's no longer a core thing.
|
Not sure if |
rehno-lindeque commentedDec 22, 2014
With the ongoing work on
Http, I'd like to bravely throw in a feature request for CORS support :)The protocol for CORS is actually somewhat involved, particularly since it involves a preflight
OPTIONSrequest which I believe needs to be resent after a timeout period. I think this is usually invisible to the user of most API's, it seems as though things can get tricky.Using AngularJS's $httpProvider and Restangular, this looks like the following:
While non-CORS restangular requests simply look like
I think swapping the argument to request in the new API might also be handy.
Since request is an elaborated version of
get/put/post/deleteit seems as though the primary use case is going to be adjusting the headers...For example, for a regular ajax request,
getmight look likewhile a CORS ajax request looks somewhat different