Skip to content

How to secure streams from being embedded to unauthorized websites and domains with Ant Media Server? #4983

Answered by yashtandon113
USAMAWIZARD asked this question in FAQs
Discussion options

You must be logged in to vote

For workaround solutions in the Ant Media server (v2.4.3 or older versions) please check here.

In v2.5.0 and above, you can allow selected domains through a single property file to let them embed the iframe code.
To allow only specific domains to embed the iframe code, Go to the Advanced Application settings and add the below setting.

contentSecurityPolicyHeaderValue=frame-ancestors 'self' <https://allow-domain-name>;

If you would like to allow multiple domains, then it should be like this.

settings.contentSecurityPolicyHeaderValue=frame-ancestors 'self' <https://domain1> <https://domain2>;

Self is required to play the stream on the AMS dashboard panel itself. In this way, other than allo…

Replies: 2 comments 23 replies

Comment options

You must be logged in to vote
4 replies
@klasadoroty
Comment options

@yashtandon113
Comment options

@klasadoroty
Comment options

@klasadoroty
Comment options

Answer selected by USAMAWIZARD
Comment options

You must be logged in to vote
19 replies
@sanjay6681
Comment options

@USAMAWIZARD
Comment options

@drcannoli
Comment options

@xtrvj
Comment options

@yashtandon113
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
10 participants