sleepy.mongoose
sleepy.mongoose copied to clipboard
added do_OPTIONS, fixed CORS
Trying to access sleepy.mongoose (started with the --xorigin
flag) from JavaScript with CORS on Chrome and Safari, I always got 501 Unsupported method ('OPTIONS')
. So I implemented it, works fine now.
Just noticed there was a similar pull request a month ago, if I had known! Anyway, can you please accept one of the two, to save future users some headaches? I think mine is a bit simpler, requiring no new command line parameter, but either way.