Skip to content
Snippets Groups Projects
Commit 91a5b679 authored by Alexey Lunin's avatar Alexey Lunin
Browse files

add cors to the agent

parent f0e87ced
No related branches found
No related tags found
No related merge requests found
Pipeline #67231 waiting for manual action with stages
in 14 minutes and 44 seconds
......@@ -12,6 +12,7 @@ import * as fs from "fs";
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors();
const globalPrefix = "api";
app.setGlobalPrefix(globalPrefix);
const port = process.env.AGENT_PORT || 3001;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment