Javascript client/API login via GET request

Hi Sam,

Thought it would be fun to write a Javascript based client…

First choice is pure Javascript but I don’t think this is possible via the current API. I tried using JSONP to get around the same origin policy but apparently it’s not possible to do a JSONP POST. Can you think of any way I can get around this or would you consider allowing requests to /api/login via GET also?

Second choice is server side authentication but it doesn’t seem possible to establish a cookie on the backend and then have clients use that cookie to make authenticated requests. Again is there some trick you can recommend to make this work.

Third choice is to have my own backend that talks to your backend.

I know I’m partly asking for Web App 101-ish help so please excuse me if that’s annoying (;

Thanks,
-Mike

1 Like