How to pass API Key to a RestAPI from html form -


i making restapi website , want use api key part of authentication. let's have form user creates comment. supposed pass in apikey url? instance,

<form method="post" action="http://example.com/api/v1/comment?apikey=12345">

these seems insecure since can view html , see apikey. so, how supposed work? how supposed use apikey security?

you use javascript/jquery post, allow add http header apikey request.


Comments