Skip to content

Change admin interface style CORS error #94222

Open

Description

Quick summary

Switching the admin interface style generates a CORS error and an error panel.

Steps to reproduce

  1. Visit one atomic site like https://wordpress.com/settings/general/__SITE__
  2. Select "Default style" (if not already in that style)
  3. Select "Classic style" and save
  4. You will be directed to wp-admin.php. Now go back to /settings/general/__SITE__ and select "Defaul style"

What you expected to happen

This to not appear:
image

Access to XMLHttpRequest at 'https://wordpress.com/settings/general/__SITE__'
(redirected from 'https://public-api.wordpress.com/wpcom/v2/sites/__ID__/hosting/admin-interface?_envelope=1') 
from origin 'https://public-api.wordpress.com' has been blocked by CORS policy: Response to preflight request
doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

What actually happened

The switch happened, but the error appeared.

Impact

Most (> 50%)

Available workarounds?

No but the platform is still usable

If the above answer is "Yes...", outline the workaround.

No response

Platform (Simple and/or Atomic)

Atomic

Logs or notes

Chrome 128.0.6613.115
Site ID: 61074952

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions