pingostack/pingos

希望能有开关屏蔽flv流里添加的Access-Control相关header

lystormenvoy opened this issue · 0 comments

image
代码里这一块配置导致了我们需要在nginx里另外配置规则时,浏览器因为重复规则等产生cors报错。

location /flv {
                include conf.d/options.conf;
                access_log  logs/live_flv_access_$logDate.log;
                flv_live 1935 app=hls;
                chunked_transfer_encoding off;
                add_header 'Access-Control-Allow-Origin' '*';
                add_header 'Access-Control-Allow-Credentials' 'true';
        }