Update CSP configuration for Arkose integration
What does this MR do and why?
Implements https://gitlab.com/gitlab-org/modelops/anti-abuse/team-tasks/-/issues/860.
Update CSP configuration for Arkose integration so it is fulfills requirement for the new Iframe-less Client API (CAPI).
From Arkose:
Iframe-less Client API enables enhanced detection capabilities while improving both security and data collection. It also introduces improvements in latency performance.
Specific CSP updates are required to enable the Iframe-less CAPI. ... We kindly ask that these changes be made within the next 30 days to ensure a smooth transition and continued access to the latest detection improvements.
This MR adds Arkose host value to the connect-src
CSP directive as described in https://developer.arkoselabs.com/docs/domain-policy. It also updates the specs to ensure existing style-src
CSP directive has 'unsafe-inline'
value.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.