News for hackers. Stuff that matters.
Re:Ask HN: How do you add headers in href of an a tag/link? by quickthrower2 on Wednesday February 22, 2023 @04:41AM (#34893542)
That is not directly possible from a link. You will need to use XHR or fetch to make the call to the api. Then use the result to update the page.

This assumes the api responds to the cross-origin request and allows the request (if not you are kind of stuck).

Re:Ask HN: How do you add headers in href of an a tag/link? by alegeaa on Wednesday February 22, 2023 @05:19AM (#34893776)
thank you.