Skip to content

Commit

Permalink
installing+using 'helmet', updaing packages, and styles changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamEcho100 committed May 21, 2022
1 parent 183cdbf commit f45a634
Show file tree
Hide file tree
Showing 4 changed files with 463 additions and 275 deletions.
2 changes: 2 additions & 0 deletions backend/server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import express, { Request, Response } from 'express';
import helmet from 'helmet';
import cors from 'cors';
import path from 'path';
// import colors from 'colors';
Expand Down Expand Up @@ -30,6 +31,7 @@ const corsOptions = {
};

app.use(cors(corsOptions));
app.use(helmet());
app.use(express.json());

app.use('/api/products', productsRoutes);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ body.dark {
}
/*.special-scrollbar*/
::-webkit-scrollbar-thumb {
background-color: var(--main-special-bg-color-5);
background-color: var(--main-font-color-2);
border-radius: 1rem;
}
/*.special-scrollbar*/
Expand Down
Loading

0 comments on commit f45a634

Please sign in to comment.