Closed minsulander closed 1 week ago
@minsulander Could you send me the CORS error you probably get when trying to do this? I'll then see what kind of adjustments I need to do to allow your site to iframe it.
Preferably a link would work as well, then I can check myself it the rules I apply work as intended.
Daniel / VATSCA Web Team
Sure, thanks for helping out @blt950!
Chrome says this in the console:
Refused to frame 'https://wiki.vatsim-scandinavia.org/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' https://moodle.vatsim-scandinavia.org".
I suspect it has to do with this header that the wiki webserver responds with:
Content-Security-Policy: frame-ancestors 'self' https://moodle.vatsim-scandinavia.org
I've added a Wiki option to the top menubar at https://vatiris.se/ so if you go there, click on that, it'll open a window with an iframe that tries to load https://wiki.vatsim-scandinavia.org/shelves/atc-sweden.
I've added an exception for vatiris.se domain now, seems to work now :)
Great stuff, thanks @blt950! Now we just have the same problem with auth.vatsim.net if we still want to go the iframe route... :crying_cat_face:
VATSCA wiki doesn't work with iframe so probably needs to be links that open in separate tab...
Preferred method using Wiki API with token.