server {

    location ~* \.(m3u8|ts)$ {
        root  D:/webroot/online_xinshop/public;
        add_header Access-Control-Allow-Origin *;
        #add_header Cache-Control no-cache; 
        if ($request_method = OPTIONS ) { 
               return 200;
        }
    }

}