vuejs-br / treinamento-vue3-code Goto Github PK
View Code? Open in Web Editor NEWCódigo fonte do treinamento de Vue 3 by Vue.js Brasil
Home Page: https://treinamento.vuejsbrasil.org/
Código fonte do treinamento de Vue 3 by Vue.js Brasil
Home Page: https://treinamento.vuejsbrasil.org/
Hello Igor, how's going!
This error ocurred on new axios installation "axios": "^1.3.3"
.
The problem has solved removed the commom in the line 23.
Only need to change
config.headers.commom.Authorization = ....
to
config.headers.Authorization = ....
Thanks for the great course...
Ola,
Estou recebendo 401 em qualquer rota que eu precise do token, mesmo passando o token na requisição.
Recebo o token no login
{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImM1OGNkOGVhLWIyY2MtNGViMi1iYzA5LTMzMTFkM2IwZTQ0YyIsImVtYWlsIjoiZXZhbi55b3VAZ21haWwuY29tIiwibmFtZSI6IkV2YW4gWW91IiwiaWF0IjoxNzA4MTg1MzUwfQ.p671-ED8qa4CeCwFTiAtYoV2Ey5lFc7ddWgCNlxiwSM" }
e ao chamar a rota /users/me
:
GET /users/me HTTP/1.1
Accept: application/json, text/plain, /
Accept-Encoding: gzip, deflate, br
Accept-Language: pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImM1OGNkOGVhLWIyY2MtNGViMi1iYzA5LTMzMTFkM2IwZTQ0YyIsImVtYWlsIjoiZXZhbi55b3VAZ21haWwuY29tIiwibmFtZSI6IkV2YW4gWW91IiwiaWF0IjoxNzA4MTg1MzUwfQ.p671-ED8qa4CeCwFTiAtYoV2Ey5lFc7ddWgCNlxiwSM
Connection: keep-alive
Host: localhost:3000
Origin: http://localhost:8080
Referer: http://localhost:8080/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
sec-ch-ua: "Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
mesmo passando o token eu recebo 401, alguem consegue me ajudar?
Isso ocorreu ao tentar rodar o ambiente de desenvolvimento. O problema em si consiste no arquivo de configuração tailwind.config.js
, a linha presets: []
desabilita a configuração padrão do tailwindcss. Segue o link de referência e solução:
// tailwind.config.js
module.exports = {
// ...
- presets: []
// ...
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.