Simple extensions for SqueezeBox/Logitech Media Server/Slimserver/SqueezeCentre for no real purpose other than to play.
The CORS header plugin (CorsHeader) is designed to add HTTP access control headers to the slim server HTTP responses in order to enable support for cross site scripting. The plugin replaces the core function Slim::Web::HTTP::_stringifyHeaders
which creates the standard responses for the all HTTP requests.
The core purpose was to enable a POST to the /jsonrpc.js
from javascript loaded from a differnt origin, in my case locally hosted by a mobile app.
To install; copy the content of the CorsHeader.zip in to the Plugins folder and restart the Logitect Media Service. For information on installing plugins, see Logitech Media Server Plugins.