DEV Community

Discussion on: Why is my browser sending an OPTIONS HTTP request instead of POST?

Collapse
bellola profile image
Luis Bello

I solved it by doing what he said.

npm install cors

var cors = require('cors')

app.use(cors())

Afterwards I was able to make POST requests

Collapse
atikaakmal profile image
atikaakmal

Hi, I am doing the same things but still did not resolve this issue. could you please tell what i can do to resolve this errro.