Skip to content

Commit 02ee6be

Browse files
committed
fix: Drop custom PublicCorsMiddleware
This was fixed in Nextcloud 26+, ref: nextcloud/server#36396 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 86b33b7 commit 02ee6be

File tree

3 files changed

+0
-111
lines changed

3 files changed

+0
-111
lines changed

lib/AppInfo/Application.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
use OCA\Forms\Capabilities;
3232
use OCA\Forms\FormsMigrator;
3333
use OCA\Forms\Listener\UserDeletedListener;
34-
use OCA\Forms\Middleware\PublicCorsMiddleware;
3534
use OCP\AppFramework\App;
3635
use OCP\AppFramework\Bootstrap\IBootContext;
3736
use OCP\AppFramework\Bootstrap\IBootstrap;
@@ -60,7 +59,6 @@ public function register(IRegistrationContext $context): void {
6059
$context->registerCapability(Capabilities::class);
6160
$context->registerEventListener(UserDeletedEvent::class, UserDeletedListener::class);
6261
$context->registerUserMigrator(FormsMigrator::class);
63-
$context->registerMiddleware(PublicCorsMiddleware::class);
6462
}
6563

6664
/**

lib/Controller/ApiController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,6 @@ private function storeAnswersForQuestion($submissionId, array $question, array $
994994

995995
/**
996996
* @CORS
997-
* @PublicCORSFix
998997
* @NoAdminRequired
999998
* @PublicPage
1000999
*

lib/Middleware/PublicCorsMiddleware.php

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)