Giter VIP home page Giter VIP logo

Comments (9)

superman66 avatar superman66 commented on August 16, 2024

根据报错信息来看,应该是跨域问题吧。你先把跨域解决了再试试

from vue-axios-github.

chenxiong666 avatar chenxiong666 commented on August 16, 2024

后端刚刚告诉我他们跨域没解决好,还有就是那个自定义header为什么在浏览器中只能看见名字,不能看到保存在header中的token

from vue-axios-github.

superman66 avatar superman66 commented on August 16, 2024

没有明白你的问题?只能再浏览器中看到名字,不能看到token是什么意思?

from vue-axios-github.

chenxiong666 avatar chenxiong666 commented on August 16, 2024

我的意思是不是将token放在header里了吗 为什么在浏览器中看不到,只能显示自定义header的名称

from vue-axios-github.

superman66 avatar superman66 commented on August 16, 2024

那是不是你的token值为空啊

from vue-axios-github.

chenxiong666 avatar chenxiong666 commented on August 16, 2024

我的token不是空啊 我输出过,但是浏览器里出现的是这样的
Access-Control-Request-Headers:authorization
Access-Control-Request-Method:POST
然后报错
Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response.

from vue-axios-github.

superman66 avatar superman66 commented on August 16, 2024

这个应该是后端没配置正确。

from vue-axios-github.

chenxiong666 avatar chenxiong666 commented on August 16, 2024

大佬有没有空帮我看一下啊,我没用过这个,后台又说他们配置好了,我不确定是不是我写错了,方不方便加QQ帮我看下

from vue-axios-github.

chenxiong666 avatar chenxiong666 commented on August 16, 2024

好了,刚刚确定是后台原因了

from vue-axios-github.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.