mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
sessions: add more endpoints that do not need a session (#4921)
* add more endpoints that do not need a session * Update src/node/hooks/express/webaccess.js Co-authored-by: Richard Hansen <rhansen@rhansen.org> * Update src/node/hooks/express/webaccess.js Co-authored-by: Richard Hansen <rhansen@rhansen.org> Co-authored-by: John McLear <john@mclear.co.uk> Co-authored-by: Richard Hansen <rhansen@rhansen.org>
This commit is contained in:
parent
60da2373a6
commit
4ca989a255
1 changed files with 9 additions and 1 deletions
|
@ -10,12 +10,20 @@ const readOnlyManager = require('../../db/ReadOnlyManager');
|
|||
hooks.deprecationNotices.authFailure = 'use the authnFailure and authzFailure hooks instead';
|
||||
|
||||
const staticPathsRE = new RegExp(`^/(?:${[
|
||||
'api/.*',
|
||||
'api(?:/.*)?',
|
||||
'favicon\\.ico',
|
||||
'ep/pad/connection-diagnostic-info',
|
||||
'javascript',
|
||||
'javascripts/.*',
|
||||
'jserror/?',
|
||||
'locales\\.json',
|
||||
'locales/.*',
|
||||
'rest/.*',
|
||||
'pluginfw/.*',
|
||||
'robots.txt',
|
||||
'static/.*',
|
||||
'stats/?',
|
||||
'tests/frontend(?:/.*)?'
|
||||
].join('|')})$`);
|
||||
|
||||
exports.normalizeAuthzLevel = (level) => {
|
||||
|
|
Loading…
Reference in a new issue