Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks
minsulander opened this issue Jul 5, 2024 · 5 comments · Fixed by #83
Closed
2 tasks

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

minsulander opened this issue Jul 5, 2024 · 5 comments · Fixed by #83
Labels
enhancement New feature or request

Comments

@minsulander
Copy link
Owner

minsulander commented Jul 5, 2024

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.

  • Styling bleeding through?
  • Clickable table of contents
@minsulander minsulander added the enhancement New feature or request label Jul 5, 2024
@blt950
Copy link

blt950 commented Jul 11, 2024

@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
Copy link
Owner Author

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
Copy link

blt950 commented Jul 11, 2024

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

@minsulander
Copy link
Owner Author

Great stuff, thanks @blt950!
Now we just have the same problem with auth.vatsim.net if we still want to go the iframe route... 😿

@maxlk96
Copy link
Collaborator

maxlk96 commented Jul 25, 2024

@maxlk96 maxlk96 changed the title General documents, GOP, LOP, LOA etc VATSCA Wiki, (Documentation GOP, LOP, LOA etc) Aug 12, 2024
@maxlk96 maxlk96 mentioned this issue Aug 12, 2024
6 tasks
@maxlk96 maxlk96 added this to the Sweden Live 2024 milestone Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants