Initial commit
This commit is contained in:
12
config/cors.js
Normal file
12
config/cors.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { defineConfig } from '@adonisjs/cors';
|
||||
const corsConfig = defineConfig({
|
||||
enabled: true,
|
||||
origin: ['http://localhost:4200', 'http://127.0.0.1:4200', 'https://portfolio.nucleus-ludus.fr', 'https://www.portfolio.nucleus-ludus.fr'],
|
||||
methods: ['GET', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
|
||||
headers: true,
|
||||
exposeHeaders: [],
|
||||
credentials: true,
|
||||
maxAge: 90,
|
||||
});
|
||||
export default corsConfig;
|
||||
//# sourceMappingURL=cors.js.map
|
||||
Reference in New Issue
Block a user