Stape/Documentation

CORS and CSP issues

Updated Mar 28, 2025

Cross-origin resource sharing (CORS) and content security policy (CPS) are common issues that cause tags malfunction. When you check the browser’s console, you may see that the request was blocked as it violates CORS/CPS directives.

Example

CORS errors occur when a webpage sends a request to a domain different from the one that served the page. The server responds with an HTTP error because its CORS configuration does not permit the "Origin" header to be included in the request.

To fix the issues, you need to ask your developers to allow the requests that are being blocked in CORS/CSP.

Can’t find what you are looking for?