Using Open Weather Map which is HTTP only through an HTTPS website and NOT get mixed content warning

后端 未结 3 1316
别跟我提以往
别跟我提以往 2020-12-19 07:37

I checked out this link here on SO: Dealing with HTTP content in HTTPS pages

I tried this regarding open protocols from here: http://benpowell.org/https-and-http-the

3条回答
  •  青春惊慌失措
    2020-12-19 08:11

    I was able to get the api to load on my site that enforces https with a little bit of php.

    Basically, I curl the http site and store the results on a page on my domain which is https so it works perfect for me.

    I wrote a little function to do the work for me

     
    

    #Full snippet

         
    
    
    
    enter code here
    

提交回复
热议问题