The easyui framework adds Authorization to the global request header like this

for example, at the back end, I used JWT check Authorization,
to write back to the front end, and found that it would be troublesome to add Authorization to every request, and like uploading pictures,

<form action="/image/upload" method="post" enctype="multipart/form-data">
    <input type="file" name="file">
    <input type="submit" value="">
</form>

head

:easyui
Mar.12,2021

js interceptor try

Menu