1
0
Fork 0

do not authenticate HTTP OPTIONS requests

This commit is contained in:
Jan Steemann 2013-01-29 15:43:39 +01:00
parent e38a795ff6
commit e9e7f96cf6
1 changed files with 2 additions and 1 deletions

View File

@ -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) {