From 9c9a81026c8fbab73d82e573fe4ffc995964e1d0 Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Thu, 25 Aug 2022 10:39:55 +0200 Subject: [PATCH] fix: add index.html to unprotected paths in auth middleware --- changelog/unreleased/missing-unprotected-paths.md | 3 ++- services/proxy/pkg/middleware/authentication.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog/unreleased/missing-unprotected-paths.md b/changelog/unreleased/missing-unprotected-paths.md index 80bc4f57d8..492f09036d 100644 --- a/changelog/unreleased/missing-unprotected-paths.md +++ b/changelog/unreleased/missing-unprotected-paths.md @@ -1,5 +1,6 @@ Enhancement: Add missing unprotected paths -Added missing unprotected paths for the text-editor, preview, pdf-viewer and draw-io to the authentication middleware. +Added missing unprotected paths for the text-editor, preview, pdf-viewer, draw-io and index.html to the authentication middleware. https://github.com/owncloud/ocis/pull/4454 +https://github.com/owncloud/ocis/pull/4458 diff --git a/services/proxy/pkg/middleware/authentication.go b/services/proxy/pkg/middleware/authentication.go index b73dd215a0..e645c04eb1 100644 --- a/services/proxy/pkg/middleware/authentication.go +++ b/services/proxy/pkg/middleware/authentication.go @@ -66,6 +66,7 @@ var ( "/preview/", "/pdf-viewer/", "/draw-io/", + "/index.html#/", } )