Support » Plugin: Disable REST API » only hides the root if trailing slash

  • Hi

    I have a client that what to hide the namespace data on a custom route

    we deselected the root of the custom path
    We have found the wp-json/custom/v1/ returns

    
    {"code":"rest_cannot_access","message":"DRA: Only authenticated users can access the REST API.","data":{"status":401}}

    wp-json/custom/v1 is return the full namespace data!!

    Before I start to dig into the code to fix this do you have it fixed in the github version?

    Paul

  • The topic ‘only hides the root if trailing slash’ is closed to new replies.