Skip to content
New issue

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

Axios e Json-server - Problemas com CORS #2

Open
lucarampi opened this issue Jul 16, 2022 · 0 comments
Open

Axios e Json-server - Problemas com CORS #2

lucarampi opened this issue Jul 16, 2022 · 0 comments

Comments

@lucarampi
Copy link

Estou tendo esse erro na hora de tentar fazer uma uma request pro JSON-Server por qualquer tipo de método que não seja GET.

image

Antes estava tendo para o GET também, mas olhando a documentação do JSON-Server, desabilitei o CORS diretamente no script com o uso de --nc

image

Tentei várias maneiras de escrever a sintaxe do axios, até mesmo tentando permitir os métodos usando a propriedade headers do axios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant