Fix: add v1 to navigation fallback denylist
This is required for the Stripe redirection flow
This commit is contained in:
@@ -245,10 +245,11 @@ if (!import.meta.env.DEV) {
|
||||
// this is so we don't respond to `/` UNLESS it's the app root itself, defined above
|
||||
/^\/.+$/,
|
||||
],
|
||||
// only /docs is required so it is navigable in the browser.
|
||||
// the rest are nice-to-haves so the single-page-app doesn't try to handle them, but `fetch`
|
||||
// and browser requests would work anyway.
|
||||
denylist: [/^\/(docs|static|file).*$/, /^\/(app.html|manifest.webmanifest|sw.js|config.js)$/],
|
||||
// only /docs, /file and /v1 are required so they are navigable in the browser (files for clicking on attachments,
|
||||
// v1 for the redirect from Stripe). The rest are nice-to-haves so the single-page-app doesn't try to handle them,
|
||||
// but `fetch` and browser requests would work anyway – they are mainly there so inspecting them is easier than
|
||||
// calling the URLs via curl.
|
||||
denylist: [/^\/(docs|file|v1|metrics|static|_matrix).*$/, /^\/(app.html|manifest.webmanifest|sw.js|config.js)$/],
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user