Edx forum mixed content

164 views
Skip to first unread message

icga...@fg.ull.es

unread,
Oct 27, 2017, 11:13:24 AM10/27/17
to General Open edX discussion
We configured https for our instalation of Edx, but we have a problem with the Forum, when we select "All Discussions" in LMS Forum, we get an error, with this message, in browser console:

Mixed Content: The page at 'https:/OURDOMAIN.COM/courses/course-v1:edX+DemoX+Demo_Course/discussion/forum/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://OURDOMAIN.COM/courses/course-v1%3AedX%2BDemoX%2BDemo_Course/discussion/forum/?ajax=1&page=1&sort_key=activity&sort_order=desc'. This request has been blocked; the content must be served over HTTPS

This is a screenshot of nectwork activity in chrome developer tools



The other options in this menu like "followed" or "Chemical Equations", etc... in the DemoX edX Demonstration Course, works fine. We tried with other own courses and we have the same problem.

We use now the Edx open release native ginkgo.1, but we tried with previous versions (ficus3 and ficus 4), and we had the same problem

Thank you very much



Si no ves correctamente mi firma, comprueba que has desbloqueado el permiso “Mostrar imágenes”)

Ned Batchelder

unread,
Oct 27, 2017, 11:15:38 AM10/27/17
to edx-...@googlegroups.com
Thanks for the report.  I think it shouldn't be hard to fix that, I hope.

--Ned.

--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/86b6ba7c-dbc8-40e1-8dff-57461db98171%40googlegroups.com.

Ned Batchelder

unread,
Oct 30, 2017, 9:10:34 AM10/30/17
to edx-...@googlegroups.com

icga...@fg.ull.es

unread,
Nov 3, 2017, 9:43:02 AM11/3/17
to General Open edX discussion
Sorry for the delay in my response, but we are with many tasks.
We tried your solution, but it generated problems. Finally we came up with the solution, although it forces us to modify a small detail in the javascript code. To apply it, we must compile the assets with paver, independently, because when we did an update, it loads the original repository.
The change, is the following, in this line of the file

https://github.com/edx/edx-platform/blob/master/common/static/common/js/discussion/utils.js#L110

We must add a "/" at the end of this line, being as follows:

 threads: '/courses/' + $$course_id + '/discussion/forum/',

If it works in a general way, it would be interesting to add it in the repository. We have tested it, in the native installation of ficus.3, ficus.4, and gingko.1


Thank you very much
Reply all
Reply to author
Forward
0 new messages