Install
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.zipOn Packagist as wearerequired/rest-api-same-origin:
composer require wearerequired/rest-api-same-originNo 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-originReleases
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.