0

I am trying to download a document from a webAPI. The URL I am trying to bind to a link, but url also takes Accept header.

How to pass in the Accept header along with the request?

I have seen this link but am not able to figure out how to set Header when binding webAPI URL to a link in html. (I would prefer not to use File downloader for now).

Community
  • 1
  • 1
Guanxi
  • 3,103
  • 21
  • 38

1 Answers1

0

As you probably know you can't pass a header from a normal html link, this could be a duplicate of Pass request headers in a jQuery AJAX GET call

Community
  • 1
  • 1
matt_lethargic
  • 2,706
  • 1
  • 18
  • 33