nokonoko / Pomf

Simple file uploading and sharing, source for the now shut down site Pomf.se
MIT License
465 stars 98 forks source link

Add CORS headers for Javascript API #25

Open emersion opened 9 years ago

emersion commented 9 years ago

Add CORS headers to allow JS scripts to post to upload endpoint

tdaede commented 9 years ago

I would like this, preferably on Uguu too.

nokonoko commented 9 years ago

@avail mind helping on this one?

avail commented 9 years ago

CORS has to be added through the server's config (nginx/apache), can't do shit about that.

tdaede commented 9 years ago

No, it's just HTTP headers. You can generate the headers with PHP, if no content has been emitted yet.

avail commented 9 years ago

@tdaede good point, didn't think about that.