Skip to content

Commit

Permalink
fix: Drop custom PublicCorsMiddleware
Browse files Browse the repository at this point in the history
This was fixed in Nextcloud 26+, ref: nextcloud/server#36396

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux authored and Chartman123 committed Mar 22, 2024
1 parent 7d6ce87 commit b81485a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 111 deletions.
2 changes: 0 additions & 2 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
use OCA\Forms\Capabilities;
use OCA\Forms\FormsMigrator;
use OCA\Forms\Listener\UserDeletedListener;
use OCA\Forms\Middleware\PublicCorsMiddleware;
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\AppFramework\Bootstrap\IBootstrap;
Expand Down Expand Up @@ -60,7 +59,6 @@ public function register(IRegistrationContext $context): void {
$context->registerCapability(Capabilities::class);
$context->registerEventListener(UserDeletedEvent::class, UserDeletedListener::class);
$context->registerUserMigrator(FormsMigrator::class);
$context->registerMiddleware(PublicCorsMiddleware::class);
}

/**
Expand Down
1 change: 0 additions & 1 deletion lib/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,6 @@ private function storeAnswersForQuestion($submissionId, array $question, array $

/**
* @CORS
* @PublicCORSFix
* @NoAdminRequired
* @PublicPage
*
Expand Down
108 changes: 0 additions & 108 deletions lib/Middleware/PublicCorsMiddleware.php

This file was deleted.

0 comments on commit b81485a

Please sign in to comment.