parent
dc9cfc1c81
commit
a464e74aa4
|
@ -270,7 +270,7 @@ class Auth
|
|||
}
|
||||
|
||||
/**
|
||||
* Attempt to authenticate a user using HTTP authentication
|
||||
* Attempt to authenticate a user using HTTP authentication on API requests only
|
||||
*
|
||||
* Supports only the Basic HTTP authentication scheme. XHR will be ignored.
|
||||
*
|
||||
|
@ -279,7 +279,7 @@ class Auth
|
|||
protected function authHttp()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
if ($request->isXmlHttpRequest()) {
|
||||
if ($request->isXmlHttpRequest() || ! $request->isApiRequest()) {
|
||||
return false;
|
||||
}
|
||||
if (($header = $request->getHeader('Authorization')) === false) {
|
||||
|
|
Loading…
Reference in New Issue