Only make requests to *.rewards.brave.com endpoints after Rewards opt-in
See original GitHub issueDescription
Browser sometimes makes calls out to *.rewards.brave.com
endpoints before user fully opts into Brave Rewards. For example, see https://github.com/brave/brave-site-specific-scripts/issues/41. Any *.rewards.brave.com
requests should only occur if the user has pressed “Start using Brave Rewards” and generated a wallet. These calls can happen as a result of Greaselion or by clicking the BAT icon.
Requests are made to the following domains, for example:
api.rewards.brave.com
rewards.brave.com
grant.rewards.brave.com
Steps to Reproduce
Greaselion
- Fresh profile
- Go to reddit.com or another site with site-specific Greaselion scripts
- Check for calls to
*.rewards.brave.com
Another way:
BAT icon
- Fresh profile
- Click on BAT icon
- Although Brave Rewards is still disabled (i.e., “Start using Brave Rewards” has not yet been pressed), check for calls to
*.rewards.brave.com
Calls should be deferred until after the user has pressed “Start using Brave Rewards”.
Expected result:
No requests needed until after opt-in.
Task list
- Content scripts/Greaselion case
- Clicking on Brave Rewards panel/BAT icon in the URL bar
- Clicking on in-line tipping button
- Navigating to brave://rewards settings page
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Only make requests to *.rewards.brave.com endpoints after ...
Calls should be deferred until after the user has pressed "Start using Brave Rewards". Expected result: No requests needed until after opt-in. Task...
Read more >Brave Rewards FAQ
Brave Rewards is a program that lets you earn tokens that you can use to redeem rewards or anonymously support the sites you...
Read more >Brave taking too much personal data from Uphold
“Extreme”??? Seems like to transfer payouts from the Rewards program only one permission with Uphold should be needed:.
Read more >How do I use Brave Rewards?
Any relevant Creator info is only downloaded after you've enabled Brave Rewards. Manage Rewards. Use the Rewards Settings page (brave://rewards) ...
Read more >What is Brave Rewards? | Brave Browser
Earn tokens just for browsing. Use them for almost anything: Cash gift cards. Crypto. Tips to websites. And more.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Potentially some more info: I restarted the browser and Utility: Bat Ledger Service was not running, and I didn’t see any calls to *.rewards.brave.com endpoints. However, when I went to brave://rewards to ensure everything was off, the ledger service started again and remained running. It seems like the ledger service should not start when simply visiting brave://rewards if ads/ac are off. Perhaps there needs to be a way to reset to the pre-opt-in state and maybe that will prevent the ledger service from starting automatically.
Thanks. @PrivacyMatters In any case, we actually went for the stronger route, and we make no calls to rewards-related endpoints until the user explicitly opts in/enables Brave Rewards 😃.