adobe-media-server

How to allow CORS request from Javascript in Adobe Media Server

江枫思渺然 提交于 2020-01-24 15:33:07
问题 I have a html page, calling HLS from javascript. Getting CORS error, of header "allow-control-allow-origin". I am using Adobe Media Server 4.5. How can i allow CORS request from javascript? 回答1: Adobe Media Server use Apache HTTP Server. To enable CORS you need to add following line to Apache HTTP Server configuration file: Header set Access-Control-Allow-Origin "your_page_origin" You need to replace "your_page_origin" with origin of the page that will make requests, or with "*" to allow

How to allow CORS request from Javascript in Adobe Media Server

微笑、不失礼 提交于 2020-01-24 15:31:07
问题 I have a html page, calling HLS from javascript. Getting CORS error, of header "allow-control-allow-origin". I am using Adobe Media Server 4.5. How can i allow CORS request from javascript? 回答1: Adobe Media Server use Apache HTTP Server. To enable CORS you need to add following line to Apache HTTP Server configuration file: Header set Access-Control-Allow-Origin "your_page_origin" You need to replace "your_page_origin" with origin of the page that will make requests, or with "*" to allow