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 d
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.
- 01Upload the entire lh-multisite-cors folder to the /wp-content/plugins/ directory.
- 02Activate the plugin through the ‘Plugins’ menu in WordPress.
Frequently asked questions.
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.