I'm trying to set the headers - Authorization after a request via axios, this request returns the token that is generated on the server, in line 7 of the code below assign the token that is returned to insert in the headers in Authorization and...
I was looking at the axios documentation and saw that to pass the user and password it is necessary to use:
auth: {
username: 'janedoe',
password: 's00pers3cret'
},
I applied the same in my reactjs code:
axios.get(store.urlBase + 'api...
I am making a request with axios with the verb post , but I can not.
Note > With the verb get I can make the request.
Object
cliente: {
nomeCompleto: '',
cpf: '',
email: '',
endereco: {
cep:...
I have the following code and would like to know how I can implement a try / catch with async / await executing the same function:
import Vue from 'vue'
import axios from 'axios'
new Vue({
el: '#app',
data: {
skills: [],
},
mounte...
I'm having a question, I'm starting with react native and I'm building an app that contains some components and uses react-navigation. The question is:
From this component that renders several items, when I click I want to receive this data i...
Before I was having trouble making the project see the file as you can see in this post:
I need make my Javascript file see the vue and axios files
He was like this:
Andnowit'slikethis,ithasbeenfixed: Thechangewastoputthefileaxiosand...
My response.data is returned a ticket in HTML format, I want to convert it to PDF. How do I?
Below a part of the code:
imprimirboleto: function () {
axios({
method: 'get',
url: '/server/boleto',
params: {...
I'm using Axios to make the requests of my application, and in one of the GET requests returns a PDF file. When I make the GET request by Postman it opens a window to choose where to save the file, but when I make the request for my application...
I'm trying to make a post from my react native app for my Spring boot application. However, I'm getting this error:
java.lang.IllegalArgumentException: Illegal base64 character a
React Native Code:
axios({
method: 'post',
url...
I'm trying to make the request for an API, using Axios:
axios.post('http://api.teste.com.br/v1/getToken', {
withCredentials: true,
auth: {
username: 'usuario',
password: 'password'
},
headers: {...