JS OAuth not running in browser (probably CORS issue)

98 views
Skip to first unread message

Thomas Bombeck

unread,
May 21, 2015, 12:40:50 PM5/21/15
to tumbl...@googlegroups.com
Hi,

I'm currently trying to get OAuth running in browser standalone because I can't rely on a Node.js Server in this case. I took the official JS client (https://github.com/tumblr/tumblr.js) and bundled it with node plus required modules using browserify. That seems to work so far, at least there are no JS errors. But when I try to post to my own blog, i get a JS error (looks like none from the API) telling me there are CORS headers missing with the tumblr response.

How can I get tumblr to allow origin from my domain?
Or if that´s not possible how am I supposed to run tumblr OAuth with browser JS?
JSONP is only for reading public blogs via GET, isn't it?
Reply all
Reply to author
Forward
0 new messages