From cf2d7012f039500091aae18ce23e5698f77fa2e0 Mon Sep 17 00:00:00 2001 From: Robert Anderson Date: Mon, 24 Dec 2018 15:59:04 +1100 Subject: [PATCH] Link to the Trac ticket for the REST API bug that we're working around --- packages/core-data/src/resolvers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core-data/src/resolvers.js b/packages/core-data/src/resolvers.js index f988e2f14f13f..849b6c4db634b 100644 --- a/packages/core-data/src/resolvers.js +++ b/packages/core-data/src/resolvers.js @@ -137,6 +137,7 @@ export function* canUser( action, resource, id ) { // Ideally this would always be an OPTIONS request, but unfortunately there's // a bug in the REST API which causes the Allow header to not be sent on // OPTIONS requests to /posts/:id routes. + // https://core.trac.wordpress.org/ticket/45753 method: id ? 'GET' : 'OPTIONS', parse: false, } );