add CORS support for Chromecast compatibility

This PR enables subtitle support when streaming to Chromcasts. See #111