• After install plugin has properly detected paths for current WP API, but if I try to send any request using request string, it gets an error “code”: “rest_no_route” . If I try to use API through browser it works properly.

Viewing 1 replies (of 1 total)
  • I ran into the same issue, however a simple workaround in templates/views/app.php helped

    I changed the rest_url() call to the following

    wp_localize_script( 'rest-api-console', 'rest_api_console', array(
    	'rest_url'   => rtrim( rest_url(), '/' ),
    	'search_url' => plugins_url( 'build/search.min.js', WP_REST_Console::$path ),
    	'rest_nonce' => wp_create_nonce( 'wp_rest' ),
    ) );
Viewing 1 replies (of 1 total)
  • The topic ‘Plugin can not make requests to WP REST API’ is closed to new replies.