• Resolved 8cinzia8

    (@8cinzia8)


    I developed an app with wordpress rest api, retrieving posts from the wordpress site.
    I am having this problem.

    “wp:featuredmedia”: [
    {
    “code”: “rest_forbidden”,
    “message”: “Non hai i permessi per farlo.”,
    “data”: {
    “status”: 401
    }
    }

    I tried unchecking the ‘Prevent discovery of usernames through’ /? Author = N ‘scans, the oEmbed API, the WordPress REST API, and WordPress XML Sitemaps’ entry in the Wordfence plugin, but the problem persists.

Viewing 1 replies (of 1 total)
  • Plugin Contributor jpowersdev

    (@jpowersdev)

    Hi @8cinzia8,

    That error means you don’t have permission to access the resource you are trying to access. Are you using an application password for your API requests? Make sure the user that owns the application password has access to view whatever resource you are trying to view.

    Jon

Viewing 1 replies (of 1 total)
  • The topic ‘Error featured media rest API’ is closed to new replies.