x / highlighter

A node app and chrome extension that allows sharing of small highlights from pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CORS

JetFault opened this issue · comments

Why not make your sever CORS compatible and just do a normal POST call?

Yeah that parts not too hard, I'm already applying the header though the proxy. Main issue is actually fixing the root of all requests made back. Like a post to /comments will go to my server /comments instead of the proxy query string URL. I think the way to fix this is making the proxy handle domain through sub domain and then let the path be the natural path of the request instead of wrapping it all into query parameters, but I haven't gotten around to building it yet.