Skip to content

Commit

Permalink
Arreglo CORS para despliegue
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomalv committed Apr 27, 2022
1 parent 50ef227 commit 351dedc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restapi/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const port: number = 5000;


const options: cors.CorsOptions = {
origin: ['http://localhost:3000', '*.compute-1.amazonaws.com:3000']
origin: ['http://localhost:3000', /\.compute-1.amazonaws\.com:3000$/]
};

const metricsMiddleware:RequestHandler = promBundle({includeMethod: true});
Expand Down

0 comments on commit 351dedc

Please sign in to comment.