Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-07-09 07:37:21 +01:00
parent 6cbf91c775
commit e79985cb5a

2
app.js
View File

@ -63,7 +63,7 @@ app.use((err, req, res, next) => {
// Global Middleware:
app.use(cors({
origin: [/\.owlboard\.info$/, 'localhost:5173', 'localhost:4173']
origin: '*'//[/\.owlboard\.info$/, 'localhost:5173', 'localhost:4173']
}));
app.use(express.json()); //JSON Parsing for POST Requests
app.use(compression()); // Compress API Data if supported by client