WP Manifestindependent plugin directory
manifest / security / rest-api-same-origin

REST API Strict Origin

WordPress plugin to limit the Access-Control-Allow-Origin header to only allowed origins.

★ 1stars
3.7kcomposer installs
0.1.0latest · 7mo ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wearerequired/rest-api-same-origin/archive/refs/heads/master.zip

On Packagist as wearerequired/rest-api-same-origin:

composer require wearerequired/rest-api-same-origin
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Limits Access-Control-Allow-Origin for REST API access to only allowed origins by is_allowed_http_origin(). By default this includes the home and site URLs.

Installation

If you're using Composer to manage dependencies, you can use the following command to add the plugin to your site:

composer require wearerequired/rest-api-same-origin

Releases

1 release.

Tag
Published
0.1.0 latest
Mar 19, 2026 7mo ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.