CDN Cname Cross domain issue in jwplayer caption

后端 未结 1 2004
既然无缘
既然无缘 2021-01-22 18:37

I am using Jwplayer 6.8 and having my jwplayer setup in some server www.example.com.I am loading subtitles in vtt format from CDN d2cdnserver.cloudfront.com( cname - example.ama

1条回答
  •  爱一瞬间的悲伤
    2021-01-22 18:58

    Thanks for commenting on my question for help.

    I'll take a blind stab in the dark here, just at your CORS configuration. I'm not exactly sure how CNAME alias changes anything. So forgive me, as I'm not familiar with jwplayer too.

    This is your current CORS Policy configuration:

      
           
           http://*.example.com
           PUT    
           POST    
           DELETE
    
           *  
         
    
       
         *    
         GET 
        
    
    

    The probable errors I see is in the first group.

    The first should be the website that is accessing your bucket resources. For example, if you're on website http://domain1.example.com to access your bucket (Shouldn't matter whether it is CNAME or not). Set both origins as the request's source:

    http://example.com
    http://*.example.com
    

    Second issue is your . You should find out from a browser's developer panel (I'm not sure whether jwplayer hides the requests) about the type of HTTP requests jwplayer sends to your S3 bucket server. Most likely it should be HTTP GET. Therefore, you need this line in your first group:

    GET
    

    Third, let's look at your HTTP Headers that jwplayer sends to the server. The first try at you put Authorization first, but you should check in the browser's developer panel on what type of HTTP Header it is firing at the server. Try this first with only:

    *
    

    As I noted in my answer from the other question that * is not allowed and ignored in CORS the settings.

    So, those settings you've set with * only, do try to set it more specific if it doesn't work the first time round e.g. Content-*

    I hope I had helped a little without causing further confusion. Good luck.

    0 讨论(0)
提交回复
热议问题