• Resolved ashishtiwari27

    (@ashishtiwari27)


    One of the plugin causes error 401.

    When our plugin sends a request to the POST /wp-json/pressidium-cookie-consent/v1/consent endpoint, your installation responds with a 401 Unauthorized error.

    {
    ? ? “code”: “rest_authentication_error”,
    ? ? “message”: “Sorry, you do not have permission to make REST API requests.”,
    ? ? “data”: {
    ? ? ? ? “status”: 401
    ? ? }
    }

    In this case, what parameter to enter in allow these namespace – in bottom Hardening section of the plugin? To make above work…

    As I disabled rest api for non admins.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ashishtiwari27

    (@ashishtiwari27)

    I entered “pressidium-cookie-consent” in the field – Allow these REST API namespaces.

    Allow REST API for these roles – Administrator

    REST api is disabled for non admins.

    Still the cookie consent is not saving (when I’m logout, incognito mode) and above error is present.

    How to allow this Namespace for visitors or logged-out users?

    Please reply me.

    Thread Starter ashishtiwari27

    (@ashishtiwari27)

    See this setting image

    Resolved!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘In this case, what is Allow Namespace’ is closed to new replies.