79341758

Date: 2025-01-09 07:52:32
Score: 1.5
Natty:
Report link

Replace,

app.use(cors({
origin: 'http://localhost:4200', // Allow requests from your frontend
methods: 'GET,POST,PUT,DELETE,OPTIONS',
allowedHeaders: 'Content-Type,Authorization'

}));

To,

app.use(cors());
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Low reputation (1):
Posted by: Prakash