Javascript jwplayer脚本中的访问控制允许原点错误

Javascript jwplayer脚本中的访问控制允许原点错误,javascript,php,.htaccess,http,jwplayer,Javascript,Php,.htaccess,Http,Jwplayer,我是新来的。 我在访问控制中遇到问题,请允许来源 这是我的剧本 <?php header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Credentials: true'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm

我是新来的。 我在访问控制中遇到问题,请允许来源

这是我的剧本

<?php
    header('Access-Control-Allow-Origin: *');
    header('Access-Control-Allow-Credentials: true');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Max TV Bangla | Live (Test Transmission)</title>



<!-- JW Player Library -->
<script src="https://content.jwplatform.com/libraries/T321vYRO.js"></script>


</head>

<body style="background: #2f3542;">

<div align="center">
    <div style="width: 75%; padding:5px; color: #ffffff; font-size: 30px; font-weight: bold;">
        Max TV Bangla | Live (Test Transmission)
    </div>
    <div style="width: 75%; height: 100%; padding: 5px;">
        <!-- div for the player -->
        <div id='playerKXSDPIwKERSv'></div>
    </div>

</div>

</body>




<!-- Script to display video file in the player div -->
<script type='text/javascript'>
    jwplayer('playerKXSDPIwKERSv').setup({
        // URL to the video file
        file: 'http://103.106.237.73:8080/hls/maxtvbangla.m3u8',
        //http://103.106.237.73:8080/hls/maxtvbangla.m3u8
        //https://ssh101.com/m3u8/dyn/maxtvbangla/index.m3u8
        // URL to the image that should be shown before the video is started
        image: 'http://content.jwplatform.com/thumbs/sB0jqeIC-720.jpg',
        title: 'Max TV Bangla | Live (Test Transmission)',
        width: '100%',
        aspectratio: '16:9'
    });
</script>

</html>

Max孟加拉电视台现场直播(测试传输)
Max孟加拉电视台现场直播(测试传输)
jwplayer('playerKXSDPIwKERSv')。设置({
//视频文件的URL
档案:'http://103.106.237.73:8080/hls/maxtvbangla.m3u8',
//http://103.106.237.73:8080/hls/maxtvbangla.m3u8
//https://ssh101.com/m3u8/dyn/maxtvbangla/index.m3u8
//视频启动前应显示的图像的URL
图像:'http://content.jwplatform.com/thumbs/sB0jqeIC-720.jpg',
标题:“Max TV Bangla现场(测试传输)”,
宽度:“100%”,
专题:“16:9”
});
加载失败:请求的资源上不存在“Access Control Allow Origin”头。因此,不允许从控制台访问源“”

实时链接是:

我想解决这个问题,为什么我要面对这个问题。 关于jwplayer

谢谢
Max

103.106.237.73
域是需要设置访问控制头的地方,而不是您自己的域。好的,我会试试,先生:)我检查了103.106.237.73,它启用了访问控制头。我认为播放器部分的问题在于,您应该能够看到浏览器“网络”开发工具中发生了什么。这将向您显示有关传出HTTP请求和站点响应的所有详细信息。