Requesting an HTTP resource from HTTPS Website

Hi @balajiganesh

The option given in the above thread is

/api/* http://endpoint.com/api/:splat 200!

which would mean instead of using something like

const response = await fetch('http://api.exchangeratesapi.io/v1/')

you would use

const response = await fetch('/api/')

You can find more information about proxying to other services in the Rewrites and proxies docs.

1 Like