diff --git a/nest/src/main.ts b/nest/src/main.ts index b022b65..9f30958 100644 --- a/nest/src/main.ts +++ b/nest/src/main.ts @@ -18,15 +18,7 @@ async function bootstrap() { // CORS setup app.enableCors({ - origin: [ - 'https://near.org', - 'https://test.near.org', - 'https://near.social', - 'https://test.near.social', - 'https://api.sourcescan.dev', - 'https://sourcescan.dev', - 'https://testnet.sourcescan.dev', - ], + origin: ['*'], methods: 'GET,POST', allowedHeaders: 'Origin, X-Requested-With, Content-Type, Accept, Authorization', @@ -45,7 +37,7 @@ async function bootstrap() { // Swagger setup const swaggerConfig = new DocumentBuilder() .setTitle('SourceScan API') - .setVersion('2.0') + .setVersion('1.0') .addBearerAuth() .build(); const swaggerDoc = SwaggerModule.createDocument(app, swaggerConfig); diff --git a/nginx/enode.conf.template b/nginx/enode.conf.template index 55a99b9..9d88574 100644 --- a/nginx/enode.conf.template +++ b/nginx/enode.conf.template @@ -35,6 +35,7 @@ server proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; + add_header 'Access-Control-Allow-Origin' '*'; } location /ipfs