MozillaFoundation / foundation.mozilla.org

Mozilla Foundation website
https://foundation.mozilla.org
Mozilla Public License 2.0
387 stars 153 forks source link

Video embeds not rendering on mozillafestival #10133

Closed kevinhowbrook closed 1 year ago

kevinhowbrook commented 1 year ago

Describe the bug

Vimeo embeds are not working here: https://mozillafestival.mofostaging.net/en/ https://mozillafestival.mofostaging.net/en/issues-and-spaces/

This may have been buggy before the wagtail upgrade as a video here is fine https://foundation.mofostaging.net/en/blog/

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'https://mozillafestival.mofostaging.net/en/'
  2. Click on a video
  3. Video fails to load
  4. Debug console shows CSP error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

Add any other context about the problem here.

kristinashu commented 1 year ago

The video works for me on production https://www.mozillafestival.org/en/ so it seems like it's a new issue

mtdenton commented 1 year ago

This seems like a staging issue, it may have never worked on staging. Dev tools: csp

CSP directives are stored in environment variables in Heroku.

danielfmiranda commented 1 year ago

Hi @kevinhowbrook!

Tyler appears to be correct that this was a CSP issue. I have updated the CSP_FRAME_SRC env variable in staging to now include vimeo and it seems to be working for me.

Can you please take another look at the page and let me know if everything is working as expected? Thanks!

kristinashu commented 1 year ago

The videos work for me now too!