开发者 | tstephenson |
---|---|
更新时间 | 2023年7月28日 16:12 |
PHP版本: | 3.6 及以上 |
WordPress版本: | 6.2.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
wp-cors.zip
to the /wp-content/plugins/
directoryIf you want to integrate content from your site to JavaScript applications running on other host domains (or allow other people to) then the CORS standard is a way to allow this.
CORS is more modern and more secure since it works with the browser's same-origin policy and XmlHttpRequest objects rather than bypassing them.
You can find the CORS spec here: http://www.w3.org/TR/cors/ You can learn more about how to use CORS here: http://www.html5rocks.com/en/tutorials/cors/
This plugin's Settings page allows administrators to specify a comma separated list of allowed domains.