I'm trying to host my front-end on some shared hosting solution, but face some issues with that.
Note: This is not supposed to be the definitive hosting solution, but I'd be able to manually test things more accuratetly that way.
My front-end needs to access some API located on a different server. For convenience (authentication and the likes), I'd like to proxy my API requests to the back-end server.
However, being in a shared hosting environment restricts my options :
- I cannot modify the
mod_proxyseems to be disabled, so no
mod_rewriteseems to be enabled
I thought about using
RewriteRule ^/api/(.*)$ https://example.com/$1
as a proxy of sorts, but I'm afraid this will not work as intended...
I'm open to any suggestions and "Do not do this!"