We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hola, estoy intentando conectar backend django con frontend Nuxt, cuando intento hacer uan petición me aparece este problema en la consola:
Access to XMLHttpRequest at 'http://localhost:8000/api/1.0/usuarios' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Mi configuración es esta
modules: [ ['@nuxtjs/axios'], ]
axios: { baseURL: 'http://localhost:8000/api', proxyHeaders: false, credentials: false, },
The text was updated successfully, but these errors were encountered:
Lograste resolver el problema?
Sorry, something went wrong.
Hola @FearHeim , si era algo en backend, estoy usando Django
Al momento de hacer el endpoint me mostraba ese error en consola, luego de haber instalado corsheaders y haberlo configurado dejó de salir el error
No branches or pull requests
Hola, estoy intentando conectar backend django con frontend Nuxt, cuando intento hacer uan petición me aparece este problema en la consola:
Access to XMLHttpRequest at 'http://localhost:8000/api/1.0/usuarios' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Mi configuración es esta
modules: [
['@nuxtjs/axios'],
]
axios: {
baseURL: 'http://localhost:8000/api',
proxyHeaders: false,
credentials: false,
},
The text was updated successfully, but these errors were encountered: