Panel disconnect when link button clicked: "app.modal is undefined"

When I edit a text in panel and want to add a link, I’m disconnected, the link modal is displayed on grey background and when I validate it, I’m redirected to login screen.

console says : app.modal is undefined

Maybe it’s linked to my aggressive CSP but not sure as self scripts are authorized and I also tried with unsafe-inline.

Any idea?