cors
This commit is contained in:
parent
a7a9d46460
commit
f2b3609125
1 changed files with 4 additions and 1 deletions
|
|
@ -79,7 +79,10 @@ pool.connect()
|
|||
.catch(err => console.error('Database connection error:', err));
|
||||
|
||||
// Middleware
|
||||
app.use(cors());
|
||||
app.use(cors({
|
||||
origin: 'https://rocks.2many.ca',
|
||||
credentials: true
|
||||
}));
|
||||
app.use(express.json());
|
||||
app.use(morgan('dev'));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue