简体   繁体   中英

Proper Request Headers for HMAC

How do I properly send an HMAC with my request to the server? Specifically, I'm not quite sure what to put in my headers. From Mozilla docs , it seems as though my headers should contain something in this format

Authorization: <type> <credentials>

I believe the <credentials> portion is where I place my MAC but I am not sure what to put for <type> . According to these Mozilla docs , I think I can choose Basic . However, I am not entirely sure.

I imagine I can send the request body as is and place the MAC somewhere in the request headers.

It's hmac for the <type>

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