Skip to content

Use https #49

Closed
Closed

Description

@SylvainCorlay

I am embedding pages from cppreference in an iframe from a web app (the jupyter notebook), which fetches the resources from cppreference based on some tag file.

The problem is that when the connection to jupyter is https, the CORS setting disallow loading content from an insecure source. Would it be possible for cppreference to be served over https?

Activity

  1. p12tic commented on Sep 9, 2017

    @p12tic
    Owner

    Could you ask this question on http://en.cppreference.com/w/Talk:Main_Page? The hosting of the website is handled by Nate Kohl, I don't think he monitors this repository.

  2. SylvainCorlay commented on Sep 9, 2017

    @SylvainCorlay
    Author

    Thanks! Closing this issue.

  3. SylvainCorlay commented on Sep 9, 2017

    @SylvainCorlay
    Author

    It does not seem that I have permission to contribute to this page on the wiki.

    cc @natekohl

  4. p12tic commented on Sep 10, 2017

    @p12tic
    Owner

    I've unprotected the page temporarily, you can edit now. Sorry for not checking earlier.

  5. SylvainCorlay commented on Sep 10, 2017

    @SylvainCorlay
    Author

    Thanks. I could edit the comments page! 👍

  6. sigurdurb commented on Mar 23, 2018

    @sigurdurb

    @SylvainCorlay Seems like nothing has been done about serving cppreference over https huh? Did you find any other fix ? I am running jupyterhub over https for my uni.

  7. SylvainCorlay commented on Mar 27, 2018

    @SylvainCorlay
    Author

    Hey @sigurdurb sorry for the late reply.

    There has been some discussion with @natekohl and @yuvipanda about how to fix this and configure the old version of mediawiki used by cppreference, but no solution to the issue yet unfortunately.

    Regarding your use at your Uni, are you using xeus-cling for C++?

  8. p12tic commented on Mar 27, 2018

    @p12tic
    Owner

    Would upgrading MediaWiki to newer version make https support easier? Upgrading will need code changes to the skins though, I have most of that done some time ago, but it's not tested properly yet.

  9. sigurdurb commented on Mar 27, 2018

    @sigurdurb

    @SylvainCorlay Yes, I have it with xeus-cling. Right now I am just testing it but maybe next fall we will start using it with Jupyterhub.

  10. SylvainCorlay commented on Mar 27, 2018

    @SylvainCorlay
    Author

    @SylvainCorlay Yes, I have it with xeus-cling. Right now I am just testing it but maybe next fall we will start using it with Jupyterhub.

    Awesome! If you have any question on xeus-cling, don't hesitate to hop on our permanent chat. https://gitter.im/QuantStack/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

  11. natekohl commented on Mar 27, 2018

    @natekohl
  12. p12tic commented on Mar 27, 2018

    @p12tic
    Owner

    The changes are in the upgrade-1.27 branch. They have been done long ago, I don't remember the state of that code.

    I'm currently mentoring a programmer that could look into this in several weeks.

  13. natekohl commented on Mar 27, 2018

    @natekohl
  14. povilas commented on Mar 28, 2018

    @povilas

    huh? :)

  15. 3 remaining items

  16. SylvainCorlay commented on Mar 28, 2018

    @SylvainCorlay
    Author

    woot!

  17. SylvainCorlay commented on Mar 28, 2018

    @SylvainCorlay
    Author

    This seems to work, but we still need to do ?action=purge on each new page (I just did it on the front page).
    Can it be done globally?

  18. natekohl commented on Mar 28, 2018

    @natekohl
  19. natekohl commented on Mar 28, 2018

    @natekohl
  20. p12tic commented on Mar 28, 2018

    @p12tic
    Owner

    @natekohl I think you can just delete the en, de, etc. directories within the cache directory - that's where all the html files reside. Be sure not to delete .htaccess accidentally :-)

  21. natekohl commented on Mar 28, 2018

    @natekohl
  22. natekohl commented on Mar 28, 2018

    @natekohl
  23. natekohl commented on Mar 29, 2018

    @natekohl
  24. SylvainCorlay commented on Mar 29, 2018

    @SylvainCorlay
    Author

    Even with ?action=purge I am seeing some issues with the loading of javascript assets from CDNs over http.

    Maybe these could be always loaded via https?

    'https://en.cppreference.com/w/cpp/container/vector' was loaded over HTTPS, but requested an insecure script 'http://cdn.jsdelivr.net/ace/1.2.4/noconflict/ace.js'. This request has been blocked; the content must be served over HTTPS.
    
  25. p12tic commented on Mar 30, 2018

    @p12tic
    Owner

    @natekohl It seems there are other caches where various bits of information are cached. Maybe running purgeList.php --all --purge maintenance script would help?

  26. p12tic commented on Mar 30, 2018

    @p12tic
    Owner

    @SylvainCorlay: The http://cdn.jsdelivr.net/ace/1.2.4/noconflict/ace.js script issue is caused by https://github.com/p12tic/cppreference-doc/blob/master/gadgets/coliru_compiler.js#L548. I've fixed this few seconds ago on the wiki. Unfortunately it seems that http://coliru.stacked-crooked.com/ does not yet support https and we will need some kind of workaround for the "Run this code" button to work.

  27. timsong-cpp commented on Apr 26, 2018

    @timsong-cpp

    It looks like a competing cache issue. Have we tried setting $wgServer to a protocol-relative URL?

  28. natekohl commented on Apr 27, 2018

    @natekohl
  29. natekohl commented on Apr 27, 2018

    @natekohl
  30. timsong-cpp commented on Apr 27, 2018

    @timsong-cpp

    I meant a protocol-relative URL like //en.cppreference.com etc. (which will follow whatever protocol you are currently using), not just making it https.

    The GeSHi thing is probably hardcoded somewhere and should be switched over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions