[mythtv-commits] mythtv branch fixes/0.27 updated by bmeek. v0.27.6-27-g3783dc8

Git Repo Owner noreply at mythtv.org
Sun Jun 26 20:38:23 UTC 2016


The branch, fixes/0.27 has been updated on the
mythtv repository by gitolite user bmeek.
       via  3783dc8beb61b45a9a482ab02288f1347eb3db55 (commit)
      from  28b7db2ed0cd165388f0bc396786e4b17f6c5774 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3783dc8beb61b45a9a482ab02288f1347eb3db55
Author:    Bill Meek <bmeek at mythtv.org> at Sun, 26 Jun 2016 15:33:46 -0500
Committer: Bill Meek <bmeek at mythtv.org> at Sun, 26 Jun 2016 15:33:46 -0500
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=3783dc8beb61b45a9a482ab02288f1347eb3db55

HTTP Server: Provide CORS (Chromecast) support
This commit adds a new AllowedOriginsList setting that
stores a comma separated list of Origins. If the setting
is missing, the list defaults to:

    https://chromecast.mythtv.org
    http://chromecast.mythtvcast.com

Access-Control-Allow -Credentials and -Headers were also
added to the response to support Chromecast.

There is no GUI. Clients have the ability to change the value
with the Services API. May need to rethink using settings as
this is a security risk.

For example, if a valid Origin exists in the request, the
following will appear in the response:

    Access-Control-Allow-Origin: https://example.com
    Access-Control-Allow-Credentials: true
    Access-Control-Allow-Headers: Content-Type

If there is no match, an existing critical log will fire:

    Cross-origin request received with origin (https://example.net)

Missing http://, https:// or a '*' character in list entries will
be ignored, and the following will be logged:

    Illegal AllowedOriginsList entry '*'. Must start with http[s]:// and not be *

Modified from the 0.28/29.0-pre version for 0.27



-----------------------------------------------------------------------

Summary of changes:
 mythtv/libs/libmythupnp/httprequest.cpp |  199 +++++++++++++++++++++++--------
 mythtv/libs/libmythupnp/httprequest.h   |   55 +++++----
 2 files changed, 177 insertions(+), 77 deletions(-)

-- 



More information about the mythtv-commits mailing list