-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unable to run version warning with URL different than readthedocs #23
Comments
Nope, this won't work. The problem is because of CORS. There is not too much we can do from this extension since that endpoint does not support |
Mmmm... wait, this code should do the trick: Did you create the right Domain from your Admin's tab project? |
Oh! That code is only executed if it's a |
@aanm I opened a PR under Read the Docs to discuss this problem. Please, subscribe there. Thanks. |
@aanm the upstream PR was merged today and it will be deployed soon. When that happens, this issue will be automatically fixed. |
@humitos thank you very much! |
I believe this should now be deployed. 👍 |
Thanks! I just tested the links from the description and both works as expected. Closing here. |
@humitos was there a regression introduced in RTD? We seem to be seeing this exact issue again |
Hi @aanm! I'm not sure to understand the problem you are reporting. Going to https://docs.cilium.io/en/v1.10/ I do see the warning version without problem. The console shows the debug information properly. |
Hi @humitos thanks for the reply. It is working now for v1.9 and v1.10 because we have made some changes on our side, see cilium/cilium#19563, cilium/cilium#19610 and cilium/cilium#19611. We have backported those changes to those branches. However, if you look at https://docs.cilium.io/en/v1.8/ you can still see the CORS problem in the console. Thanks! |
@stsewd do you know what happened here and why the API is now having CORS issues? Is it possible to solve it somehow? |
Looks like this was the result from where we locked down our API from cross site requests GHSA-3v5m-qmm9-3c6c. We could:
|
Open console in:
http://docs.cilium.io/en/v1.0/
This works URL works:
https://cilium.readthedocs.io/en/v1.0/
@humitos what do you think it should be the best option for this?
Should I create a copy of the JSON from
https://readthedocs.org/api/v2/version/?project__slug=cilium&active=true
inhttp://docs.cilium.io/version
plus addversionwarning_api_url=docs.cilium.io
?The text was updated successfully, but these errors were encountered: