mirror of https://gitee.com/bigwinds/arangodb
do not authenticate HTTP OPTIONS requests
This commit is contained in:
parent
e38a795ff6
commit
e9e7f96cf6
|
@ -419,7 +419,8 @@ namespace triagens {
|
|||
bool auth = this->_server->getHandlerFactory()->authenticateRequest(this->_request);
|
||||
|
||||
// authenticated
|
||||
if (auth) {
|
||||
// or an HTTP OPTIONS request. OPTIONS requests currently go unauthenticated
|
||||
if (auth || this->_requestType == HttpRequest::HTTP_REQUEST_OPTIONS) {
|
||||
|
||||
// handle HTTP OPTIONS requests directly
|
||||
if (this->_requestType == HttpRequest::HTTP_REQUEST_OPTIONS) {
|
||||
|
|
Loading…
Reference in New Issue