How to access files with anti-leech #185
-
Which Deepgram product are you using?Deepgram API DetailsHi, I have all my audio files on Aliyun object storage service. Because I do not want my users to download my audio files, I turned on anti-leech service. However, deepgram cannot access my audio files in this way. In order to put deepgram into the white list on Aliyun OSS, I need a referer when I am trying to access files on my OSS with this: https://api.deepgram.com/v1/listen. Can you tell me at what value should I set the referer in this case? If you are making a request to the Deepgram API, what is the full Deepgram URL you are making a request to?No response If you are making a request to the Deepgram API and have a request ID, please paste it below:No response If possible, please attach your code or paste it into the text box.No response If possible, please attach an example audio file to reproduce the issue.No response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
When fetching files by URL, the request includes a |
Beta Was this translation helpful? Give feedback.
Hey @maketesteasier I just talked to the team and what you said is correct. The
referer
field is not set because it can be spoofed (i.e. an attacker could set that value to anything they want). For that reason, the best way to authenticate the request is to check thedg-token
header. The value of this header parameter is the ID of your API key (not the API key itself), which is effectively a secret that only you and Deepgram know.