Fix CORS
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
6cbf91c775
commit
e79985cb5a
2
app.js
2
app.js
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user