Enable CORS from any origin
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
e4255e9cbf
commit
06259e3d9f
4
app.js
4
app.js
@ -65,9 +65,7 @@ app.use((err, req, res, next) => {
|
||||
});
|
||||
|
||||
// Global Middleware:
|
||||
app.use(cors({
|
||||
origin: 'https://svelte.owlboard.info'
|
||||
})); // Allow test site origins access to API
|
||||
app.use(cors()); // Allow access from any origin
|
||||
app.use(express.json()); //JSON Parsing for POST Requests
|
||||
app.use(compression()); // Compress API Data if supported by client
|
||||
app.use(limiter);
|
||||
|
@ -1,6 +1,6 @@
|
||||
const version = {
|
||||
api: ['/api/v1/',],
|
||||
app: '2023.6.6'
|
||||
app: '2023.6.7'
|
||||
};
|
||||
|
||||
module.exports = version;
|
Loading…
Reference in New Issue
Block a user