Re: suggestions for redirecting https -> http and back
Sean Felipe Wolfe <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <CAOFf2a2gpv4h5L-5rHJRe2ZSQZhU9xRu7X9=+=J7WqJbpTFPsg@mail.gmail.com> |
Hahaha .... I think this is the software equivalent of ... "did you check if it's plugged in" ?? thanks :) On Fri, Jan 4, 2019 at 7:03 PM Tiancheng Luo <[email protected]> wrote: > Hello, > > I think football-data.org actually supports https request. I tried to > access both their homepage (https://www.football-data.org/) and some > resources (https://api.football-data.org/v2/competitions/ and > https://api.football-data.org/v2/players/44/matches) through https, and > it works. > > On Sat, Jan 5, 2019 at 9:57 AM Sean Felipe Wolfe <[email protected]> > wrote: > >> Oops, sorry... okay back to the email ... >> >> >> So, I recently purchased an .app web domain which requires all traffic be >> https. However I'm working on a project which access an api which only >> serves http (http://football-data.org). This is causing mixed content >> errors. >> >> After a bit of research, I am thinking to add a microservice to my site, >> such that a) my main app calls the local server on a different url, and b) >> that url is served by a different app, a microservice which will consume >> the https request and make a separate http call to the football-data API, >> receive the http response, convert back to https and serve the request. A >> bit complicated, but it seems like the best solution on the web side. >> >> A couple questions -- one, does this sound like the right approach? If so >> two, would this be a good library to use for the microservice? >> https://github.com/jtrupiano/rack-rewrite >> >> Any suggestions or experience would be greatly appreciated. Thanks ! >> >> >> >> On Fri, Jan 4, 2019 at 5:54 PM Sean Felipe Wolfe <[email protected]> >> wrote: >> >>> Hello ! >>> >>> I recently purchased a .app web domain which requires all traffic be >>> https. However I'm working on a project which access an api which only >>> serves http (http://football-data.org). This is causing mixed content >>> errors.After a bit of research, I am thinking to >>> >>> -- >>> A musician must make music, an artist must paint, a poet must write, if >>> he is to be ultimately at peace with himself. >>> - Abraham Maslow >>> >> >> >> -- >> A musician must make music, an artist must paint, a poet must write, if >> he is to be ultimately at peace with himself. >> - Abraham Maslow >> >> Unsubscribe: <mailto:[email protected]?subject=unsubscribe> >> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk> >> > > Unsubscribe: <mailto:[email protected]?subject=unsubscribe> > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk> > -- A musician must make music, an artist must paint, a poet must write, if he is to be ultimately at peace with himself. - Abraham Maslow Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>