I have hosted my website on example.com and I hosted my node server on aws ec2 which is mapped to server.com .
example.com
server.com
I call api from example
example