Skip to content

Commit

Permalink
sessions: add more endpoints that do not need a session (ether#4921)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored Mar 5, 2021
1 parent 60da237 commit 4ca989a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/node/hooks/express/webaccess.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 4ca989a

Please sign in to comment.