Skip to content

BUG: OpenRefine reconciliation preview is broken because Aleph does not permit page embedding #3236

Open
@brawer

Description

@brawer

When reconciling custom data against Aleph with OpenRefine, the preview tab is broken. OpenRefine seems to display reconciliation candidates with an embedded iframe. However, modern browsers require that the embedded page (in this case, Aleph’s entity preview) sends an HTTP header that explicitly permits embedding; see HTTP Content Security Policy. Because Aleph doesn’t send this HTTP header, OpenRefine reconciliation against Aleph is currently very cumbersome and slow.

To Reproduce

  1. Use OpenRefine to reconcile a set of names against an Aleph dataset such as the Swiss company register.
  2. Hover over any reconciliation candidate.
  3. Instead of an entity preview panel, OpenRefine (respectively the browser) shows an error message about a Content Security Policy violation: Because aleph.occrp.org does not allow embedding its page as an iframe, the content cannot be displayed.

Expected behavior
OpenRefine should display an entity preview panel fetched from aleph.occrp.org.

Aleph version
July 31, 2023

Screenshots

grafik

Additional context

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors

I used Firefox, but the same problem also happens with Chrome. In the past, users could have disabled CSP to work around this. However, to improve web security, browsers have made CSP mandatory and do not allow disabling it anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ModerateIssue that may require attentionbugThings that should work, but don’tuiIssues related to Aleph’s frontend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions