[Flask] Flask Digest, Vol 6, Issue 7

Kyle Lawlor klawlor419 at gmail.com
Mon Dec 21 12:34:17 EST 2015


Hi, David.

Thanks for the response. I actually did not see it until the mailing list
summary showed up in my inbox.
Weird, this has happened once before. Anyways, thanks again!

-Kyle

On Mon, Dec 21, 2015 at 12:00 PM, <flask-request at python.org> wrote:

> Send Flask mailing list submissions to
>         flask at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mail.python.org/mailman/listinfo/flask
> or, via email, send a message with subject or body 'help' to
>         flask-request at python.org
>
> You can reach the person managing the list at
>         flask-owner at python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Flask digest..."
>
>
> Today's Topics:
>
>    1. probably ssl-related, flask-googlemaps issue, on a heroku
>       deploy (Kyle Lawlor)
>    2. Re: probably ssl-related, flask-googlemaps issue, on a heroku
>       deploy (David Nieder)
>    3. Re: probably ssl-related, flask-googlemaps issue, on a heroku
>       deploy (Kyle Lawlor)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 20 Dec 2015 22:43:37 -0500
> From: Kyle Lawlor <klawlor419 at gmail.com>
> To: flask at python.org
> Subject: [Flask] probably ssl-related, flask-googlemaps issue, on a
>         heroku deploy
> Message-ID:
>         <CACaYNLR4ajT85czquEMC4gj9RoxR_Ek_xwQGqht4H=
> FBnh4nXg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi, all.
>
> I recently uploaded my web app onto Heroku. It is a site that I am making
> for a friends restaurant: lacasadelsabor.herokuapp.com
>
> The trouble is that I'm using *Flask-Googlemaps* to display the restaurant
> location, but the map does not load by default (
> lacasadelsabor.herokuapp.com/maps). I've noticed that if I "disable
> protection for now" (in ubuntu firefox) the map does load. The map also
> loads fine when run locally with gunicorn. (I did not test locally with
> heroku yet).
>
> I'm using *Flask-SSLify* and that seems to be configured properly. (I've
> got it so that it triggers only when run in the Heroku)
>
>     curl -I http://lacasadelsabor.herokuapp.com
> >
> >     HTTP/1.1 302 FOUND
> >     Connection: keep-alive
> >     Server: gunicorn/19.4.1
> >     Date: Mon, 21 Dec 2015 03:29:47 GMT
> >     Content-Type: text/html; charset=utf-8
> >     Content-Length: 281
> >     Location: https://lacasadelsabor.herokuapp.com/
> >     Via: 1.1 vegur
> >
>
> Additionally I am seeing an alert in firefox by the ssl-lock icon. Which
> says "firefox blocks parts of the page that are not are not secure".
>
> I'm sure that I am doing or missing something stupid.
> Any pointers on where I should go from here?
>
> Thanks for your time,
> Kyle
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.python.org/pipermail/flask/attachments/20151220/3193c4ab/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Mon, 21 Dec 2015 10:09:14 +0100
> From: David Nieder <davidnieder at gmx.de>
> To: flask at python.org
> Subject: Re: [Flask] probably ssl-related, flask-googlemaps issue, on
>         a heroku deploy
> Message-ID: <5677C1BA.6080002 at gmx.de>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 21.12.2015 04:43, Kyle Lawlor wrote:
> > Hi, all.
> >
> > I recently uploaded my web app onto Heroku. It is a site that I am making
> > for a friends restaurant: lacasadelsabor.herokuapp.com
> >
> > The trouble is that I'm using *Flask-Googlemaps* to display the
> restaurant
> > location, but the map does not load by default (
> > lacasadelsabor.herokuapp.com/maps). I've noticed that if I "disable
> > protection for now" (in ubuntu firefox) the map does load. The map also
> > loads fine when run locally with gunicorn. (I did not test locally with
> > heroku yet).
> >
> > I'm using *Flask-SSLify* and that seems to be configured properly. (I've
> > got it so that it triggers only when run in the Heroku)
> >
> >      curl -I http://lacasadelsabor.herokuapp.com
> >>
> >>      HTTP/1.1 302 FOUND
> >>      Connection: keep-alive
> >>      Server: gunicorn/19.4.1
> >>      Date: Mon, 21 Dec 2015 03:29:47 GMT
> >>      Content-Type: text/html; charset=utf-8
> >>      Content-Length: 281
> >>      Location: https://lacasadelsabor.herokuapp.com/
> >>      Via: 1.1 vegur
> >>
> >
> > Additionally I am seeing an alert in firefox by the ssl-lock icon. Which
> > says "firefox blocks parts of the page that are not are not secure".
> >
>
> The problem is that you tell the browser to load resources over http
> while your site was served over https. Modern browsers won't do that.
>
> I'm guessing that flask-googlemaps included those lines.
> The latest commit on github seems to deal with this issue.
>
> https://github.com/rochacbruno/Flask-GoogleMaps/commit/c7b5979684ff7bf11d90270a56bae44e461de9fb
>
> Try updating the extensions and check if you have version 0.1.9
> installed. That probably solves this issue.
>
> If you've included urls yourself just change the url scheme to https or
> use relative schemes:
>
> <script src="//maps.googleapis.com/..."></script>
>
> > I'm sure that I am doing or missing something stupid.
> > Any pointers on where I should go from here?
> >
> > Thanks for your time,
> > Kyle
> >
> >
> >
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 21 Dec 2015 11:39:47 -0500
> From: Kyle Lawlor <klawlor419 at gmail.com>
> To: flask at python.org
> Subject: Re: [Flask] probably ssl-related, flask-googlemaps issue, on
>         a heroku deploy
> Message-ID:
>         <
> CACaYNLQpHyy5QeV4dxi18EkFmPde08D53PsS05Nxk+9f2jS_UA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> The issue was that I had unused js files that were making reference to
> http, not https. This caused the "mixed content" warnings in firefox.
>
> Also flask-googlemaps <https://github.com/rochacbruno/Flask-GoogleMaps>
> 0.1.8 sets up a map using api referencing http. It turned out there was a
> commit
> <
> https://github.com/rochacbruno/Flask-GoogleMaps/commit/c7b5979684ff7bf11d90270a56bae44e461de9fb
> >
> a couple days ago in that project fixing just this issue.
>
> After updating flask-googlemaps to 0.1.9, the map loads just fine. Thanks
> again Jianfeng, for pointing this out to me.
>
> -Kyle
>
> On Sun, Dec 20, 2015 at 10:43 PM, Kyle Lawlor <klawlor419 at gmail.com>
> wrote:
>
> > Hi, all.
> >
> > I recently uploaded my web app onto Heroku. It is a site that I am making
> > for a friends restaurant: lacasadelsabor.herokuapp.com
> >
> > The trouble is that I'm using *Flask-Googlemaps* to display the
> > restaurant location, but the map does not load by default (
> > lacasadelsabor.herokuapp.com/maps). I've noticed that if I "disable
> > protection for now" (in ubuntu firefox) the map does load. The map also
> > loads fine when run locally with gunicorn. (I did not test locally with
> > heroku yet).
> >
> > I'm using *Flask-SSLify* and that seems to be configured properly. (I've
> > got it so that it triggers only when run in the Heroku)
> >
> >     curl -I http://lacasadelsabor.herokuapp.com
> >>
> >>     HTTP/1.1 302 FOUND
> >>     Connection: keep-alive
> >>     Server: gunicorn/19.4.1
> >>     Date: Mon, 21 Dec 2015 03:29:47 GMT
> >>     Content-Type: text/html; charset=utf-8
> >>     Content-Length: 281
> >>     Location: https://lacasadelsabor.herokuapp.com/
> >>     Via: 1.1 vegur
> >>
> >
> > Additionally I am seeing an alert in firefox by the ssl-lock icon. Which
> > says "firefox blocks parts of the page that are not are not secure".
> >
> > I'm sure that I am doing or missing something stupid.
> > Any pointers on where I should go from here?
> >
> > Thanks for your time,
> > Kyle
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.python.org/pipermail/flask/attachments/20151221/e7c4a2bc/attachment-0001.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Flask mailing list
> Flask at python.org
> https://mail.python.org/mailman/listinfo/flask
>
>
> ------------------------------
>
> End of Flask Digest, Vol 6, Issue 7
> ***********************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20151221/079701fd/attachment.html>


More information about the Flask mailing list