# Testing gated Video

**URL:** <https://forum.mautic.org/t/testing-gated-video/8500>\
**Category:** Product Support\
**Created:** [May 15, 2017, 12:20pm UTC](https://forum.mautic.org/t/testing-gated-video/8500 "2017-05-15T12:20:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnaber](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@dnaber](https://forum.mautic.org/u/dnaber)\
**Post date:** [May 15, 2017, 12:20pm UTC](https://forum.mautic.org/t/testing-gated-video/8500/1 "2017-05-15T12:20:27Z")

</div>

Hi,  
  
I wanted to test gated Video for my audience for a while but I had nopropper Video to try it. Now I got one but I have a few troubles getting it to work:  
  
The overlay starts at 5sec which is what I specified in the Code, but it does not show any Form - only “undefined”  
  
I have these two codes on that page:

Code:

Code:

Do I need anything else? To me it seems like the Code is allright but it doesn't get any answer from my mautic installation

---

<div class="post-metadata">

**Author:** ![dnaber](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@dnaber](https://forum.mautic.org/u/dnaber)\
**Post date:** [May 15, 2017, 12:20pm UTC](https://forum.mautic.org/t/testing-gated-video/8500/2 "2017-05-15T12:20:27Z")

</div>

Hi,  
I wanted to test gated Video for my audience for a while but I had nopropper Video to try it. Now I got one but I have a few troubles getting it to work:  
The overlay starts at 5sec which is what I specified in the Code, but it does not show any Form - only “undefined”  
I have these two codes on that page:

`<video width="100%" height="100%" data-form-id="[ID]" data-gate-time="2">
    <source type="video/youtube" src="https://[LINKTOMYREALVIDEO]" />
</video>
`

[code] [/code] Do I need anything else? To me it seems like the Code is allright but it doesn't get any answer from my mautic installation

---

<div class="post-metadata">

**Author:** ![dnaber](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@dnaber](https://forum.mautic.org/u/dnaber)\
**Post date:** [May 18, 2017, 7:31am UTC](https://forum.mautic.org/t/testing-gated-video/8500/3 "2017-05-18T07:31:38Z")

</div>

Solved:  
The Probblem was caused by the CORS-Settings. Adding my Domain to the List of allowed Domains fixed my Error.
