The address in the element-ui upload file action is not easy to use.

I use the axios request and encapsulate this request

use action to put the address on the el-upload document

but now I am requested by a reverse proxy locally. I also write action as a dead address, which will show cross-domain

.

but it"s wrong for me to change the antion address dynamically

clipboard.png

clipboard.png

clipboard.png

it"s not the quotation marks. Maybe I didn"t make myself clear

the interface I use for reverse proxy requests when developing locally

if you put this address in the test environment action, it should be useful because there is no cross-domain problem

but now if you want to test locally, then the whole request, including action, cannot directly write the address

.

how to make a reverse proxy for action to request this address

Apr.01,2021

: action= "unloadUrl" is missing double quotes.
does your local proxy setting set proxyTable in config? If the proxy is set up, it can also be uploaded locally


upstairs.

Menu