[Answer]-Server code HTTP POST to the remote server โ€“ Django

1๐Ÿ‘

โœ…

Ajax CAN do cross-domain calls, but the other domain must allow you to do so by using CORS.

However, if you really just need to reflect an external API from your own domain, you can set your web server to reverse proxy the relevant endpoints of the external API. This will be much more performant than proxying through Django. You can even use your web server to add authentication details into the proxied request.

๐Ÿ‘คThomas

Leave a comment