mozilla / bedrock

Making mozilla.org awesome, one pebble at a time
https://www.mozilla.org
Mozilla Public License 2.0
1.18k stars 915 forks source link

[Pocket] One Trust cookie banner throws a CORS / JS error #14535

Closed alexgibson closed 5 months ago

alexgibson commented 5 months ago

Description

Integration tests on main are failing for Pocket since the cookie banner there is not appearing: https://github.com/mozilla/bedrock/actions/runs/8906946806/job/24459945922

Test failure URL: https://dev.pocket.bedrock.nonprod.webservices.mozgcp.net/en/about/?automation=true

Access to XMLHttpRequest at 'https://cdn.cookielaw.org/consent/a7ff9c31-9f59-421f-9a8e-49b11a3eb24e-test/a7ff9c31-9f59-421f-9a8e-49b11a3eb24e-test.json' from origin 'https://dev.pocket.bedrock.nonprod.webservices.mozgcp.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
otSDKStub.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'Domain')
    at h.setDomainIfBulkDomainEnabled (otSDKStub.js:1:6528)
    at h.getLocation (otSDKStub.js:1:6967)
    at s.onerror (otSDKStub.js:1:9358)
cdn.cookielaw.org/consent/a7ff9c31-9f59-421f-9a8e-49b11a3eb24e-test/a7ff9c31-9f59-421f-9a8e-49b11a3eb24e-test.json:1 
Failed to load resource: net::ERR_FAILED
alexgibson commented 5 months ago

Oh, it's broken in production too: https://getpocket.com/en/about/

Pages not under our infra seem OK: https://getpocket.com/collections

alexgibson commented 5 months ago

This has now been resolved on Pocket's side, closing