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?