wearerequired / rest-api-same-origin
WordPress plugin to limit the Access-Control-Allow-Origin header to only allowed origins.
Package info
github.com/wearerequired/rest-api-same-origin
Type:wordpress-plugin
pkg:composer/wearerequired/rest-api-same-origin
dev-master / 0.1.x-dev
2019-05-18 09:51 UTC
Requires
- php: >=7.1
Requires (Dev)
This package is auto-updated.
Last update: 2026-02-19 00:14:25 UTC
README
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