-
Notifications
You must be signed in to change notification settings - Fork 69
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
non-SSL requests on https://explorer.continuum.io/seeds #761
Comments
Note, I've already pulled out
Other parts of the REST API work, it's something specific to this page/view. |
@brittainhard - workaround is to ensure you've got trailing slashes on Django REST endpoints: See jashkenas/backbone#848 for more details. |
Please land the following patch when you get a chance:
|
This is fixed in production, but not in our repository. |
Found another one:
I'm guessing it's the same issue. |
I've backed it out this far: source/base/templates/base/edit_seeds.html
source/base/static/base/js/backbone/edit_seeds_backbone.js
|
Rubber-duckied my way out of this one. If I understand what's going on correctly: Backbone composes an incorrect request for a given seeds list using a very slightly incorrect URL: https://explorer.continuum.io/api/seeds_list/1 instead of https://explorer.continuum.io/api/seeds_list/1/ Now there are actually a couple of ways we should be able to fix this. Django was sending a 301 redirect back, but it's sending using an 'http' protocol, not https. So I made sure that Django knew that it needed to send HTTPS redirect responses back. This is a two-part operation. On the nginx configuration:
In Django settings:
Note the security warnings on SECURE_PROXY_SSL_HEADER, but this all looks correct to me. |
So the patches are to nginx and settings. I think this frees us from having to worry about trailing slashes so long as Django redirects to the correct resource. |
I'll close this when the commits are landed to the docker branch and pushed. |
punting to 0.5 - this is fixed on explorer.continuum.io |
Hot-fixing for now.
The text was updated successfully, but these errors were encountered: