In the example above the asterisks acts as a wild card and allows access to all domains. conf file: Header set Access-Control-Allow-Origin "*" You can set a header in the configuration of Apache servers to enable CORS. Header add Access-Control-Allow-Origin: : This is the access control header itself to allow content from the indicated domain.Header set Access-Control-Allow-Headers: X-Requested-With: This header is required for the Access-Control-Allow-Origin header to work, since the request the player is making is an XmlHttpRequest.Testing has confirmed that this header is not sent with images or other http-delivered content. : This conditional sets the Access-Control-Allow-Origin header only on vtt or xml files. The following provides brief explanations of the directive: Header set Access-Control-Allow-Headers: X-Requested-With It’s important to note that since different CDN partners use different server solutions to deliver their content, the header information below is offered as an example, and not as a drop-in code snippet.īrightcove has had success with the following header directive for in-house CDN server's properties: The solution that Brightcove is using at this time involves configuring an Access-Control-Allow-Origin header in the CDN origin server’s configuration file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |