Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLANET-5897 Allow embedding Planet4 content into third party websites #132

Closed
stduerre opened this issue Jan 20, 2021 · 1 comment
Closed
Assignees
Labels
Backend tickets that mostly require php knowledge Dev development tickets

Comments

@stduerre
Copy link

We have cases in GP Switzerland where we would like to embed content from our Planet4 website into third party websites. For example:

  • Petitions we run directly on Planet4 into partner websites
  • Other forms for paid promotions on local news sites

At the moment, NGINX is set up to send a x-frame-options: SAMEORIGIN header (related config), which prohibits other pages (on different domains) to embed our content.

Suggested solution: Set the header from Wordpress instead of NGINX and provide a filter to remove it from certain pages.
Alternatively, if we only want to allow embedding for certain trusted 3rd party domains only, there's a way to do that: instead of only removing the x-frame-options, a list of trusted domains to embed our content could be added through a Content-Security-Policy: frame-ancestors <source>; header (more info).

@oekeur
Copy link

oekeur commented Jan 20, 2021

GP Netherlands would also really like this!
Our use case is for use in cross-domain cookies.
We have two domains in use (greenpeace.nl & greenpeace.org/nl).
By embedding an (lightweight) iframe of the domain A into domain B, we are able to exchange the cookies consent.
Currently this only works one-way, if we would be able to embed Planet4 into our other domain, we would have to show less cookie notices, reuslting in a better UX.

Having an option to filter the x-frame option and setting a domain in the CSP header, would be awesome!

@comzeradd comzeradd added Backend tickets that mostly require php knowledge Dev development tickets labels Jan 21, 2021
@comzeradd comzeradd changed the title Allow embedding Planet4 content into third party websites PLANET-5897 Allow embedding Planet4 content into third party websites Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend tickets that mostly require php knowledge Dev development tickets
Projects
None yet
Development

No branches or pull requests

3 participants