Problem in cors
Unanswered
Transvaal lion posted this in #help-forum
Transvaal lionOP
I'm having a problem accessing my api with next, in the api I've already configured cors to *
19 Replies
@Transvaal lion I'm having a problem accessing my api with next, in the api I've already configured cors to *
Southeastern blueberry bee
show the api code
@Southeastern blueberry bee show the api code
Transvaal lionOP
Southeastern blueberry bee
no the api
not the req
the api code where u are receiving the request
mb
@Southeastern blueberry bee the api code where u are receiving the request
Transvaal lionOP
Are you talking about the route?
Southeastern blueberry bee
yes
Transvaal lionOP
Southeastern blueberry bee
Okay, can i see the
router.use(...)sTransvaal lionOP
Southeastern blueberry bee
if you do
npm i cors and do server.use(cors())that works
Transvaal lionOP
I'm not using express, but hyper-express, so I can't use npm cors
Southeastern blueberry bee
oh right
then im not the best help
i use express
sorry
Transvaal lionOP
When I access the URL through the browser it goes normally, now with next there is a problem with the cors