minsulander / vatiris

VATSim (Sweden, Unofficial) Integrated Real-time Information System
GNU General Public License v3.0
5 stars 2 forks source link

VATSCA Wiki, (Documentation GOP, LOP, LOA etc) #9

Closed minsulander closed 1 week ago

minsulander commented 4 months ago

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.

blt950 commented 4 months 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

minsulander commented 4 months ago

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.

blt950 commented 4 months ago

I've added an exception for vatiris.se domain now, seems to work now :)

minsulander commented 4 months ago

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:

maxlk96 commented 3 months ago

https://forum.vatsim.net/t/iframing-vatsim-connect/6040

https://auth.vatsim.net/organization