這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

LH Multisite CORS

描述

AJAX requests to this site from another (those containing an Origin header) will be allowed for any domain in your multisite setup, no configuration required

Like this plugin? Please consider leaving a 5-star review.

Love this plugin or want to help the LocalHero Project? Please consider making a donation.

安裝

This section describes how to install the plugin and get it working.

  1. Upload the entire lh-multisite-cors folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

常見問題

Why do I need this plugin?

If you want to integrate content from your site to JavaScript applications running on other domains then the CORS standard is a way to allow this. Allowing CORS for all sites is a security problem but given you are the super admin for sites on your own network they should be trustworthy, therefore CORS can be safely activated.

What is the difference between CORS and JSONP?

CORS is more modern and more secure since it works with the browser’s same-origin policy and XmlHttpRequest objects rather than bypassing them.

Ok I’m sold, where can I read more about CORS?

You can find the CORS spec here: http://www.w3.org/TR/cors/ You can learn more about how to use CORS here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

What is something does not work?

LH Multisite CORS, and all https://lhero.org plugins are made to WordPress standards. Therefore they should work with all well coded plugins and themes. However not all plugins and themes are well coded (and this includes many popular ones).

If something does not work properly, firstly deactivate ALL other plugins and switch to one of the themes that come with core, e.g. twentyfirteen, twentysixteen etc.

If the problem persists please leave a post in the support forum: https://wordpress.org/support/plugin/lh-multisite-cors/. I look there regularly and resolve most queries.

What if I need a feature that is not in the plugin?

Please contact me for custom work and enhancements here: https://shawfactor.com/contact/

評價

2021年7月4日 1 reply
Sorry. it doesnt "has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
閱讀全部3個評價

貢獻者及開發者

“LH Multisite CORS” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 LH Multisite CORS 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.00 April 12, 2016
Initial release.1.01 March 24, 2017
Fixed php strict errors1.02 July 27, 2017
Added class check