Skip to main content
Version: 1.x

HOST111: Cors misconfigured

What this means

The server's cross-origin (CORS) configuration is broken, so the browser refuses its responses.

The store answers, but its CORS response headers are wrong — duplicated, set to the wrong origin, or missing on error responses. The browser then hides the real answer from the web app, which also masks every other error behind a generic network failure. The fix is server-side: exactly one Access-Control-Allow-Origin, present on every status code.

Your data

No order or product data is affected.

Troubleshoot

  1. Look for a second CORS layer (a plugin AND the server config both adding headers) and remove one — duplicated Access-Control-Allow-Origin is a fatal browser error.
  2. On nginx, add_header lines skip error responses unless they end with 'always' — CORS headers must be on 4xx/5xx too.
  3. If a CDN or proxy adds CORS headers, make sure it does not conflict with WordPress's own.
  4. The desktop and mobile apps do not use CORS and will still work while this is being fixed.

Details

Code
HOST111 (CORS_MISCONFIGURED)
Severity
error
Introduced in
WCPOS 1.10.0