mirror of
https://github.com/nextcloud/server.git
synced 2026-05-26 03:04:35 -04:00
Merge pull request #12812 from nextcloud/backport/12808/stable14
[stable14] Only run the AnonymousOptionsPlugion on Anonymous requests
This commit is contained in:
commit
2d757a0e4c
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ class AnonymousOptionsPlugin extends ServerPlugin {
|
|||
* @return bool
|
||||
*/
|
||||
public function handleAnonymousOptions(RequestInterface $request, ResponseInterface $response) {
|
||||
if ($request->getMethod() === 'OPTIONS') {
|
||||
if ($request->getHeader('Authorization') === null && $request->getMethod() === 'OPTIONS') {
|
||||
/** @var CorePlugin $corePlugin */
|
||||
$corePlugin = $this->server->getPlugin('core');
|
||||
// setup a fake tree for anonymous access
|
||||
|
|
|
|||
Loading…
Reference in a new issue