Skip to content

Commit

Permalink
fixed bootswatch styling...
Browse files Browse the repository at this point in the history
  • Loading branch information
singharaj-usai committed Oct 11, 2024
1 parent 5097c65 commit cd2ea4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 0 additions & 4 deletions client/html/components/footer.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
/>

<style>
html {
Expand Down
7 changes: 7 additions & 0 deletions server/functions/api/routes/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ const authLimiter = rateLimit({
// for accounts signed up without csrf protection
const flexibleCsrfProtection = (req, res, next) => {
const csrfToken = req.headers['x-csrf-token'] || req.body._csrf;
const isBootswatchRequest = req.path.includes('/bootswatch/');

if (isBootswatchRequest) {
// Allow Bootswatch requests without CSRF protection
return next();
}

if (csrfToken) {
csrfProtection(req, res, next);
} else {
Expand Down

0 comments on commit cd2ea4e

Please sign in to comment.