Currently a vercel app blocks all API calls claiming that the request to an insecure site can’t be made from a secure one therefore incompatible.
I need any suggestion to make this IP to be whitelisted in vercel app, I will favor suggestions on using IP and not a domain for the API.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hello,
I would recommend taking a look at this answer here by ryanpq on how to get an SSL for an IP address:
https://www.digitalocean.com/community/questions/ssl-for-ip-address
You basically have two options:
Create a self-signed ssl certificate. This has the benefit of being free and fairly easy to set up but will result in a security warning in most browsers since they look for a trusted authority to have issued the certificate. If you are creating this for internal use this may be the best option.
Purchase an SSL certificate from a provider. For this I’d recommend reaching out to a few providers to find one that will support issuing a certificate for your public IP address.
Alternatively, you could add a subdomain name to your server, like
api.yourdomian.com
, that way you can use Let’s Encrypt and get a free SSL certificate:https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04
Hope that this helps!
Regards,
Bobby