background
← Back to all provider errors

Google

corsRequestWithXOrigin — Bad CORS Request

The CORS request contains an X-Origin header indicating a bad cross-origin request.

Riposte solution

Google rejected the request due to an invalid X-Origin header in a cross-origin context. If you're calling Riposte from a browser, avoid adding X-Origin headers improperly. Ensure your cross-origin requests are configured correctly (Riposte endpoints should handle CORS if properly set up). Remove the X-Origin header or configure the request to comply with Google's CORS requirements.

Quick facts

Provider
Google
Endpoint / surface
Google API (global)
Status code
400

Why it happens

Using disallowed X-Origin header in cross-origin request

How to fix it

Remove the X-Origin header or configure CORS properly