Skip to content

Commit

Permalink
fix: fix errors in install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Klesse committed Dec 20, 2024
1 parent a1f8623 commit a2f7b95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion projects/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ async function bootstrap() {
server.setViewEngine(envConfig.templates.engine);

// Enable cors to allow requests from other domains
server.enableCors();
server.enableCors({
origin: '*', // Erlaube alle Ursprünge (nur für Entwicklung!)
methods: 'GET,POST,PUT,DELETE,OPTIONS',
credentials: true, // Falls Cookies verwendet werden
});

// the next two lines did the trick
server.use(bodyParser.json({limit: '900mb'}));
Expand Down

0 comments on commit a2f7b95

Please sign in to comment.