We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
frontend_url
1 parent dcbc3b4 commit bbf21feCopy full SHA for bbf21fe
1 file changed
nextstep-backend/src/app.ts
@@ -24,7 +24,7 @@ const specs = swaggerJsdoc(options);
24
const app = express();
25
26
const corsOptions = {
27
- origin: [config.app.frontend_url().split(";"), config.app.backend_url()],
+ origin: [...(config.app.frontend_url().split(";")), config.app.backend_url()],
28
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
29
credentials: true, // Allow cookies to be sent with requests
30
};
0 commit comments