Skip to content

Commit bbf21fe

Browse files
committed
Fix frontend_url Split In The Backend
1 parent dcbc3b4 commit bbf21fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nextstep-backend/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const specs = swaggerJsdoc(options);
2424
const app = express();
2525

2626
const corsOptions = {
27-
origin: [config.app.frontend_url().split(";"), config.app.backend_url()],
27+
origin: [...(config.app.frontend_url().split(";")), config.app.backend_url()],
2828
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
2929
credentials: true, // Allow cookies to be sent with requests
3030
};

0 commit comments

Comments
 (0)