{"id":43200,"date":"2016-04-14T10:16:25","date_gmt":"2016-04-14T10:16:25","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/lh-multisite-cors\/"},"modified":"2022-07-30T16:21:41","modified_gmt":"2022-07-30T16:21:41","slug":"lh-multisite-cors","status":"publish","type":"plugin","link":"https:\/\/id.wordpress.org\/plugins\/lh-multisite-cors\/","author":2531614,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.02","stable_tag":"trunk","tested":"6.0.12","requires":"3.6","requires_php":"","requires_plugins":"","header_name":"LH Multisite CORS","header_author":"Peter Shaw","header_description":"","assets_banners_color":"e1e5ea","last_updated":"2022-07-30 16:21:41","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/lhero.org\/portfolio\/lh-multisite-cors\/","header_plugin_uri":"https:\/\/lhero.org\/portfolio\/lh-multisite-cors\/","header_author_uri":"https:\/\/shawfactor.com","rating":3.7,"author_block_rating":0,"active_installs":300,"downloads":12329,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":1,"2":0,"3":0,"4":0,"5":2},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1395303,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":1395311,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[221,6557,2299],"plugin_category":[],"plugin_contributors":[83584],"plugin_business_model":[],"class_list":["post-43200","plugin","type-plugin","status-publish","hentry","plugin_tags-ajax","plugin_tags-cors","plugin_tags-rest","plugin_contributors-shawfactor","plugin_committers-shawfactor"],"banners":{"banner":"https:\/\/ps.w.org\/lh-multisite-cors\/assets\/banner-772x250.jpg?rev=1395311","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/lh-multisite-cors\/assets\/icon-128x128.png?rev=1395303","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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<\/p>\n\n<p><strong>Like this plugin? Please consider <a href=\"https:\/\/wordpress.org\/support\/view\/plugin-reviews\/lh-multisite-cors\/\">leaving a 5-star review<\/a>.<\/strong><\/p>\n\n<p><strong>Love this plugin or want to help the LocalHero Project? Please consider <a href=\"https:\/\/lhero.org\/portfolio\/lh-multisite-cors\/\">making a donation<\/a>.<\/strong><\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<ol>\n<li>Upload the entire <code>lh-multisite-cors<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='why%20do%20i%20need%20this%20plugin%3F'><h3>Why do I need this plugin?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id='what%20is%20the%20difference%20between%20cors%20and%20jsonp%3F'><h3>What is the difference between CORS and JSONP?<\/h3><\/dt>\n<dd><p>CORS is more modern and more secure since it works <em>with<\/em> the browser's same-origin policy and XmlHttpRequest objects rather than bypassing them.<\/p><\/dd>\n<dt id='ok%20i%27m%20sold%2C%20where%20can%20i%20read%20more%20about%20cors%3F'><h3>Ok I'm sold, where can I read more about CORS?<\/h3><\/dt>\n<dd><p>You can find the CORS spec here: http:\/\/www.w3.org\/TR\/cors\/ You can learn more about how to use CORS here: <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/CORS\">https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/CORS<\/a><\/p><\/dd>\n<dt id='what%20is%20something%20does%20not%20work%3F'><h3>What is something does not work?<\/h3><\/dt>\n<dd><p>LH Multisite CORS, and all <a href=\"LocalHero\">https:\/\/lhero.org<\/a> 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).<\/p>\n\n<p>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.<\/p>\n\n<p>If the problem persists please leave a post in the support forum: <a href=\"https:\/\/wordpress.org\/support\/plugin\/lh-multisite-cors\/\">https:\/\/wordpress.org\/support\/plugin\/lh-multisite-cors\/<\/a>. I look there regularly and resolve most queries.<\/p><\/dd>\n<dt id='what%20if%20i%20need%20a%20feature%20that%20is%20not%20in%20the%20plugin%3F'><h3>What if I need a feature that is not in the plugin?<\/h3><\/dt>\n<dd><p>Please contact me for custom work and enhancements here: <a href=\"https:\/\/shawfactor.com\/contact\/\">https:\/\/shawfactor.com\/contact\/<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p><strong>1.00 April 12, 2016<\/strong><br \/>\nInitial release.<strong>1.01 March 24, 2017<\/strong><br \/>\nFixed php strict errors<strong>1.02 July 27, 2017<\/strong><br \/>\nAdded class check<\/p>","raw_excerpt":"Allows AJAX requests from other sites in your multisite network even if they are on another domain or subdomain","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/43200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=43200"}],"author":[{"embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/shawfactor"}],"wp:attachment":[{"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=43200"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=43200"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=43200"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=43200"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=43200"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/id.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=43200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}