Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

crossdomain access denied


I am using self hosted JWPlayer 6, and my video content is hosted on other server. I have uploaded the crossdomain.xml on content server on root path.

When I am providing <allow-access-from domain="*"/> in my crossdomain.xml file everything is working fine.

But I want to restrict the access of my content from some specific domains (domain1.com, sub.domain1.com, sub.domain2.com).

Suppose my content is located at domain.com and self hosted JWPlayers are hosted at domain1.com, sub.domain1.com, sub.domain2.com, so I am uploading below crossdomain.xml on root of domain.com

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="domain1.com" secure="true"/>
<allow-access-from domain="sub.domain1.com" secure="true"/>
<allow-access-from domain="sub.domain2.com" secure="true"/>
<allow-access-from domain="domain.com" secure="true"/>
<allow-access-from domain="*.domain1.com" secure="true"/>
<allow-access-from domain="*.domain2.com" secure="true"/>
<allow-access-from domain="*.domain.com" secure="true"/>
<site-control permitted-cross-domain-policies="master-only"/>
</cross-domain-policy>

But at player whle playing the video getting error crossdomain access denied.

I have checked the crossdomain.xml fle getting downloaded at client-end properly.

1 Community Answers

Randy

JW Player Support Agent  
0 rated :

Hello,

I would like to look into this issue for you. Can you potentially provide me a sample of your page via a link with no external elements or CSS so I can review this? This provides me a clearer idea of what could be causing the issue from a JW Player embed perspective. I’ve also included a link on how to submit a reproduction page to our support team that may be useful as well: https://support.jwplayer.com/customer/en/portal/articles/2186238-troubleshooting-%E2%80%94-creating-a-reproduction-page

Randy

This question has received the maximum number of answers.