Re: suggestions for redirecting https -> http and back
Sean Felipe Wolfe <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <CAOFf2a3r1Dy4gxSkwRy69NqemHR_SYoT4R4y97twJsKWRo9XtA@mail.gmail.com> |
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>