element-hq / element-integration-manager

Element Integration Manager related issues
6 stars 1 forks source link

Can't include a nextcloud calendar as custom widget #72

Closed derhagen closed 1 year ago

derhagen commented 1 year ago

Steps to reproduce:

The console presents the following error message: The resource from “https://scalar.vector.im/api/widgets/generic-*****.bundle.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

I'm using Firefox 111.0.1, but the same behaviour occurs in a current Flatpak version of element-web

Half-Shot commented 1 year ago

I think that error is a red herring, broadly looking at the logs I can see a bunch of CSP errors which are probably due to the hosted nextcloud instance not allowing itself to be embedded.

image

derhagen commented 1 year ago

right, the nextcloud delivers a x-frame-options: SAMEORIGIN header, I guess that's the cause. Thank you for helping me debug this :)