Unable to customize User-Agent #806
Unanswered
velopechip
asked this question in
Q&A
Replies: 2 comments 2 replies
-
As long as the query volume is low, I don't believe there is any issues with browsers querying API directly. But if there are problems you have little to no visibility. I know the heading says "authentication" but there is no signup or registration required for user-agents. Anything works. Caching and rate limiting use user-agent as part of the key. If the long-promised API keys get implemented however, it becomes a security problem. You don't want to put API keys in browser JavaScript, they tend to get stolen. |
Beta Was this translation helpful? Give feedback.
2 replies
-
weather.gov API will need to look for a custom header is the only option
From: velopechip ***@***.***>
Sent: Friday, March 21, 2025 2:53 PM
To: weather-gov/api ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [weather-gov/api] Unable to customize User-Agent (Discussion #806)
A JavaScript application running in a browser context cannot set a custom value for the User-Agent string. What are the implications for a JavaScript application that uses the weather.gov API but is unable to set a custom User-Agent value. Are there any other methods available to authenticate requests?
—
Reply to this email directly, view it on GitHub<#806>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADJHCG5TCE2JWJKRK4DDNKD2VSC5RAVCNFSM6AAAAABZQ7FKJ6VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGEYTKNRTGE>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A JavaScript application running in a browser context cannot set a custom value for the User-Agent string. What are the implications for a JavaScript application that uses the weather.gov API but is unable to set a custom User-Agent value. Are there any other methods available to authenticate requests?
Beta Was this translation helpful? Give feedback.
All reactions