How to pass the secret key value into the http header when testing?

I use the embeded webview to test node.js restful API , but I have to pass the api authenciation key into the request header (can not pass the key via url, it’s not safe ), but dont’ know how to set the key value into request header in the webview of replit IDE, someone can help ? thanks

this’s my code

Well you aren’t really supposed to do it through the webview. You could write some code to do it.

thank you for your reply:)