Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged axios

0 votes
1.5k views
1 answer
    I have a react app with custom user-auth built using json web token. When the user is authenticated during ... /github-api-get-request-is-automatically-sending-x-auth-token...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    Hi I need to understand how to "pass" some $store values from settings module to header module, being the ... com/questions/65855065/vue-js-pass-store-data-from-different-modules...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    I am building a React Native app using Expo. The app sends some network requests via axios, i am ... /stackoverflow.com/questions/65909020/proxy-network-requests-via-react-native...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    I am attempting to programmatically add Spotify tracks to a playlist, however, I am running into an issue. If I ... /spotify-web-api-issue-add-items-to-playlist-using-node-js...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I am working on an expo app and the APIs for the app using session and cookies for authentication can anybody ... /66048668/how-to-do-authentication-using-cookies-in-expo-app...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I'm using Axios interceptors to set some data and headers in different requests: export default ({ $axios }) ... ://stackoverflow.com/questions/66054292/set-headers-based-on-url...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I'm using Axios interceptors to set some data and headers in different requests: export default ({ $axios }) ... ://stackoverflow.com/questions/66054292/set-headers-based-on-url...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.8k views
1 answer
    I am new in Typescript. I am converting my code from JavaScript to Typescript. My code below will ... stackoverflow.com/questions/66062849/how-to-set-axiosconfig-using-typescript...
asked Oct 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    react项目使用axios作为ajax库 成功后可以正常拿到返回值对象 但是报400时不能拿到返回值对象 但是在network中是有信息的...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    JS代码: var params = { username: 'admin', password: '123456' } axios.post('test.php', params).then(res => console.log(res. ... : $str = $_POST['username']; print_r($str); 浏览器打印出来的是...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    vue获取本地json,一直404 文件位置 代码 Vue.prototype.$http = axios this.$http.get('/src/api/testJson.json').then(response => { console.log(response) }, response => { // error callback })...
asked Feb 5, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.3k views
1 answer
    在vue2.0中使用axios向后台请求数据 全局配置axios, /src/apis/index.js import axios from 'axios'; import qs from 'qs'; ... ) TypeError: Cannot read property 'cancelToken' of undefined,请问是什么原因呢?...
asked Feb 5, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    这里封装了一个 Axios 的请求类,提供了发送请求的 request 方法 每一个 API 接口使用其进行 ajax 请求用法如下: 这样写的意思是,每调用一次 API 都执行一遍 request 方法,也 ... 搜索了下,axios.create() 创建过个实例对象会需要额外的垃圾回收 https://stackoverflow.com/que......
asked Jan 29, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    正常请求,都OK,没毛病 有一个字段的长度是1000,我填满这个字段,发起请求,浏览器直接给我报了跨域 from origin 'http://localhost:8081' has been blocked ... -Origin' header is present on the requested resource. 在线等待,求高手告知问题原因 ...
asked Jan 29, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    正常请求,都OK,没毛病 有一个字段的长度是1000,我填满这个字段,发起请求,浏览器直接给我报了跨域 from origin 'http://localhost:8081' has been blocked ... -Origin' header is present on the requested resource. 在线等待,求高手告知问题原因 ...
asked Jan 29, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    我写的有问题么?在线等 import axios from 'axios' axios({ method: 'get', url: "http://192.168.4.206:8858/purchase/listAll", // 测试 ... (res => { console.log(res.data) }).catch(error => { });...
asked Jan 29, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    axious 在node端A 发请求到B, B在响应里设置了cookie。 A收到响应后,组装数据返回给浏览器,但是浏览器没收到cookie。怎么办?...
asked Jan 29, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    Vue + axios + elementUI 关于 axios 里面统一拦截错误信息,当出现类似 超时 的统一错误 如果当前页面的某个操作会引发多个并发接口,错误信息能否只展示一次? 如何写出优雅的解决方式...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    这个url上有一个空格,通过axios请求不通过,会500错误, 但是走浏览器和工具都是可以的这是为什么...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    addAppVersion(formdata: any, file: any) { const data = new FormData(); data.append('appfile', file); data.append('appVersion', JSON.stringify( ... ,能不能做到直接传递一个对象参数呢?或者用其他方式传递file?...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    POSTMAN POST raw json没有问题 但是axios Post 返回403错误 !...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    POSTMAN POST raw json没有问题 但是axios Post 返回403错误 !...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.8k views
1 answer
    var formData = new FormData(); formData.append("File", this.File1); this.axios({ url:'/user/test', method: 'post', params: {video: ... formData.get('File')的时候 是有完整的file对象的 没头脑了 求助...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    后台要求我在请求头里面加入以下两个参数 headers:{ 'timestamp': time, 'sign': ('key' + time) } 报跨域: 'http://192.168.4.108:9001' has been blocked ... have HTTP ok status. 不加这两个参数接口调用正常 请问怎么解决这个问题,在线等待...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    后台要求我在请求头里面加入以下两个参数 headers:{ 'timestamp': time, 'sign': ('key' + time) } 报跨域: 'http://192.168.4.108:9001' has been blocked ... have HTTP ok status. 不加这两个参数接口调用正常 请问怎么解决这个问题,在线等待...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    let axios = require('axios') let httpurl = "https://www.dytt8.net/index.htm" axios.get(httpurl,{responseType:"gb2312"}).then(function(res){ ... log(res) }) 请问该如何设置才能让返回的中文不是乱码呢?...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.0k views
1 answer
    let axios = require('axios') let httpurl = "https://www.dytt8.net/index.htm" axios.get(httpurl,{responseType:"gb2312"}).then(function(res){ ... log(res) }) 请问该如何设置才能让返回的中文不是乱码呢?...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
3.8k views
1 answer
    在写一个前后端分离的项目,在使用axios做请求的时候,发现请求超时问题 我的后端使用Node实现,代码如下: const express = require('express') const app = express() var mongoose ... 度娘说是添加拦截器,但是按照方法添加后 post 依然无法运行到 console.log(3) 中...
asked Jan 25, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...