Yui
Yui3y ago

fetch - change user agent

Anyway to change user agent and other fetch parameters. There is one api I have not called in like 2 months, but it still shows up as ratelimited(cloudflare btw). However I can access it via insomnia or my web browser just fine so I am assuming deno headers are the problem
1 Reply
Bubbles
Bubbles3y ago
Iirc user agent is a header yeah. Just add { headers: [["user-agent", "your agent"]] } As second parameter to the fetch and it should work

Did you find this page helpful?