A
A
AlessArver2021-05-25 21:32:22
Vue.js
AlessArver, 2021-05-25 21:32:22

How to solve cors problem in Nuxt?

Good evening! I write authorization through Steam on the back. At the front I write with Nuxt. Proxy set up. Added nuxtjs/proxy plugin to next.config.js in modules. I can send back requests from the front, but when I direct to the page for authorization in Steam, I get a cors error. Without nuxt there is no such error.

For the test, I cloned the passport-steam repository and wrote a link to the backing address on the front, which I use for the project with Nuxt. There was no mistake. The redirect to the Steam login page worked.

I think the problem is related to Nuxt, because without it everything works fine.60ad42a0498fc675745005.jpeg60ad42a9cc962875774823.jpeg60ad42ad1989e357744469.jpeg60ad42b1a1803894299363.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question