Accessing SEOmatic meta via controller action in Element API triggers HTTPForbiddenException I'm attempting to fetch SEO meta for entries inside of an element API, roughly following the advice in Element API integration
Below is the exact code in my element-api.php:
&lt;?php

use craft\elements\Entry;

return [
    'endpoints' =&gt; [
        'api.json' =&gt; function() {
            return [
                'elementType' =&gt; Entry::class,
                'criteria' =&gt; [],
                'transformer' =&gt; function(Entry $entry) {
                    $seo = Craft::$app-&gt;runAction('seomatic/meta-container/all-meta-containers', [
                        'uri' =&gt; $entry-&gt;uri,
                        'siteId' =&gt; null,
                        'asArray' =&gt; true,
                    ])-&gt;data;

                    return $seo;
                },
            ];
        },
    ]
];


If I hit this endpoint directly in a browser - e.g. http://my-url.test/api.json - it returns a response exactly as expected. However, if I try to hit the endpoint using an external GET requestion with Accept: application/json (I'm using https://paw.cloud, specifically), I get back an error exception of yii\\web\\ForbiddenHttpException
Is there something about runAction inside of an Element API call that isn't allowed? Is there something I need to do to allow this in outside requests?
Probably you need to turn on the Meta Container Endpoint Access option in SEOmatic -&gt; Plugin Settings -&gt; Endpoints
This is intentionally disabled by default, you need to enable it if you intend to use it.