Re: suggestions for redirecting https -> http and back

Tiancheng Luo <[email protected]>
Newsgroups gmane.comp.lang.ruby.general
Message-ID <CAE+HOtOGpi7cEutVZGEVZajOs_3+HTReK3tNqyqVwXLVq5ZkoQ@mail.gmail.com>
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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.