-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inserting a Site Title block causes a 403 error (REST API) #33003
Comments
This PR: #32961 might simplify things for such errors. We need to audit all the usages in combination with REST API. We should probably also look to remove |
Context support is there by Riad in the above PR.
Not so sure about that 😄 . Some controls I had seen need some data that are only in |
Ah, hadn't noticed that
Ah, indeed! Seems like we just need to provide a
👍 |
Description
Found while working on #32868. This is currently blocking #32868, as it causes e2e tests to fail 😕
Repro'd on current GB
trunk
.Step-by-step reproduction instructions
Expected behaviour
No network request to fail with a 403.
Actual behaviour
The network request to
GET http://localhost:8888/index.php?rest_route=%2Fwp%2Fv2%2Fsettings%2F&_locale=user
comes back with a 403 error, with the following response:The error is also visible in the devtools console, including a stacktrace. While minimized, it seems to be caused by this line:
gutenberg/packages/block-library/src/site-title/edit/index.js
Line 31 in afee31e
Bonus
If you enter 'Site' into the block picker to locate the Site Title block, there's another network request that fails with a 403:
GET http://localhost:8888/index.php?rest_route=/wp/v2/users&context=edit&per_page=100&_locale=user
fails withThe stack trace points to the Query Loop block for this one:
gutenberg/packages/block-library/src/query/edit/query-inspector-controls.js
Lines 88 to 90 in afee31e
This latter 403 also causes an
Uncaught (in promise)
error to be logged in the browser console.cc/ @ntsekouras
The text was updated successfully, but these errors were encountered: