Description
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
- Use OpenRefine to reconcile a set of names against an Aleph dataset such as the Swiss company register.
- Hover over any reconciliation candidate.
- 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

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.