简体   繁体   中英

how to send data to an api with password in Reactjs

I need to send some data from inputs to an API which has a password and username and I couldn't find a way to do it

description here

this is what i have to do

它是Authorization: Basic [encoded] ,其中[encoded]是 base64 编码的内容字符串: username: password

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM