Merge branch 'main' of https://git.anatid.net/tabris/anatid-blog
All checks were successful
Anatid Blog CI Workflow / test (./backend) (push) Successful in 28s
Anatid Blog CI Workflow / test (./frontend) (push) Successful in 30s
Anatid Blog CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/anatid-blog-backend, ./backend) (push) Successful in 50s
Anatid Blog CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/anatid-blog-frontend, ./frontend) (push) Successful in 1m0s
Anatid Blog CI Workflow / deploy (push) Successful in 26s

This commit is contained in:
Phill Pover 2025-03-29 08:27:40 +00:00
commit eab60089ca

View File

@ -1,14 +1,15 @@
import { NestFactory } from '@nestjs/core'; import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module'; import { AppModule } from './app.module';
const corsOptions = {
origin: 'https://blog.anatid.net',
methods: 'GET,POST,PATCH,DELETE,OPTIONS',
optionsSuccessStatus: 200
};
async function bootstrap() { async function bootstrap() {
const app = await NestFactory.create(AppModule); const app = await NestFactory.create(AppModule);
app.enableCors(corsOptions); app.enableCors({
origin: ['https://blog.anatid.net'],
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
credentials: true,
allowedHeaders: 'X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept, Observe', // Allowed headers
});
await app.listen(process.env.PORT ?? 3000); await app.listen(process.env.PORT ?? 3000);
} }