problem description
the Access-Control-Allow-Origin cross-domain request has been added at the backend. I added Access-Control-Allow-Origin, in the axios request interception, but the browser reported an error name.toUpperCase is not a function. I don"t know what caused it.
the environmental background of the problems and what methods you have tried
Google hasn"t found a solution to the problem all morning
related codes
/ / Please paste the code text below (do not replace the code with pictures)
before adding Access-Control-Allow-Origin, the browser reports an error like this
what result do you expect? What is the error message actually seen?
this is a vue project. You want to add cross-domain when intercepting a request so that you can access the interface normally.
I wonder if it is clear to ask questions when using vue, for the first time. Please help me a lot.