rc: add support for OPTIONS and basic CORS - #2575

This commit is contained in:
frenos
2018-09-14 16:02:09 +02:00
committed by Nick Craig-Wood
parent 7b975bc1ff
commit 382a6863b5
2 changed files with 46 additions and 14 deletions

View File

@@ -229,6 +229,9 @@ If an error occurs then there will be an HTTP error status (usually
400) and the body of the response will contain a JSON encoded error
object.
The sever implements basic CORS support and allows all origins for that.
The response to a preflight OPTIONS request will echo the requested "Access-Control-Request-Headers" back.
### Using POST with URL parameters only
```