I'm running a react app frontend on Netlify which should ideally send commands to an elastic beanstalk backend in form of POST calls. Netlify is bound to my own purchased domain (myname.com) and the beanstalk is running the default address (XXXXXX.elasticbeanstalk.com).
Now the problem is Netlify won't allow sending POST calls to an unsecured (HTTP) endpoint, and requires the endpoint be https://XXXXX.elasticbeanstalk.com. I have pretty limited knowledge on how HTTPS actually works, so anything below this is me fumbling around in the dark and may be quite incorrect.
I tried several methods of enabling HTTPS on the beanstalk
Anyone know how to either
Note: At this point, I'm not really worried about the security, and even an unsecure platform would work for now.
Thanks
Finally managed to solve it using CORS-anywhere
proxy, by adding the endpoint as https://cors-everywhere.herokuapp.com/http://xxxx.elasticbeanstalk.com/my-endpoint