From acfe51c112b91da6cff067de71935eb8a7acd253 Mon Sep 17 00:00:00 2001 From: Phill Pover Date: Fri, 28 Mar 2025 10:42:50 +0000 Subject: [PATCH] More CORS --- backend/src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main.ts b/backend/src/main.ts index b875596..e03661f 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -2,6 +2,8 @@ import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; const corsOptions = { origin: 'https://blog.anatid.net', + methods: 'GET,POST,PATCH,DELETE,OPTIONS', + optionsSuccessStatus: 200 }; async function bootstrap() {