# Security violation when loading from youtube

**URL:** <https://forum.kirupa.com/t/security-violation-when-loading-from-youtube/284070>\
**Category:** flash\
**Created:** [March 14, 2009, 4:18pm UTC](https://forum.kirupa.com/t/security-violation-when-loading-from-youtube/284070 "2009-03-14T16:18:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnsson](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Johnsson](https://forum.kirupa.com/u/Johnsson)\
**Post date:** [March 14, 2009, 4:18pm UTC](https://forum.kirupa.com/t/security-violation-when-loading-from-youtube/284070/1 "2009-03-14T16:18:08Z")

</div>

Hi!!

I’m trying to play youtube videos on my webpage…  
It’s worked before, but now there seem to be some sort of security violation…

I’ve tried with this inside of flash:

```auto
Security.allowDomain("www.youtube.com");
Security.loadPolicyFile("http://www.youtube.com/crossdomain.xml");

```

But it makes no difference.

Here’s an FLA for u to take a look at!!

```auto
http://hem.bredband.net/ollij/youtube.fla

```

Thanks!!!:hugegrin:
