wellcomecollection / wellcomecollection.org

🪟 Wellcome Collection's website and services that support it
https://wellcomecollection.org
MIT License
39 stars 5 forks source link

Create a new CloudFront distro behaviour for /slice-machine* #10874

Closed kenoir closed 4 months ago

kenoir commented 4 months ago

Who is this for?

Content-editors who want to preview content, @davidpmccormick who wants to be done with the prismic migration.

What is it doing for them?

This change removes the security polify for this path to allow the slice machine preview to work.

The security policy adds an x-frame-options: DENY header which prevents browsers from rendering content in an iFrame. We add a special exception for /slice-machine paths so prismic can use this path however it likes.