-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Site-specific cookies setting does not override default for (Google API) HTTP referrer #6657
Comments
cc: @tomlowenthal @jumde Can you take a look? |
Oui. The change seems to have fixed this. Using the nightly build, the proper referrer is used and the Map API behaves correctly. Cheers. |
Thanks for the confirmation, @i-Mobyl 😄 I'll close this issue out and label it so that we can test this with the 1.12 release 😄 Fixed with brave/brave-core#5613 |
Marking as |
Verification passed on OnePlus 6T with Android 10 running 1.12.111 x64 build
Verification passed on Samsung Tab A with Android 10 running 1.12.111 x64 build
|
Description
Using a Google API (e.g., for Maps Embed) with a key that is restricted via a list of HTTP Referrers. I understand brave spoofs cross-origin referrer when '3rd party cookie block' is on. When I set the default shield cookie settings to "Allow all cookies", the API works (maps displayed), while on the other "Block..." settings, the API errors. This is expected. However, setting the site-specific shield cookie setting to "Allow all cookies", or even turn shields off, if the default is to "Block..", then the API errors. My understanding is that site-specific settings should override the default, so that if "Allow all cookies" is selected for a site, the API should work regardless of the default setting.
Steps to Reproduce
Actual result:
The referrer is set to https://www.google.com and the following error appears:
"Google Maps Platform rejected your request. This IP, site or mobile application is not authorized to use this API key. Request received from IP address 98.229.177.122, with referer: https://www.google.com/"
Expected result:
The site-specific cookie setting of "Allow all cookies" overrides the default setting, the referrer is set to my.site.com and the map itself displays.
Reproduces how often:
Every time.
Brave version (brave://version info)
Version 0.70.121 Chromium: 78.0.3904.70 (Official Build) (64-bit)
Version/Channel Information:
Tried only on current release.
Other Additional Information:
Miscellaneous Information:
The text was updated successfully, but these errors were encountered: