-
Notifications
You must be signed in to change notification settings - Fork 607
Description
I've been able to get my API deployed successfully using cortex (Thank you very much!) and I was amazed at how easy it was.
Now that I actually want to use this with AJAX calls, I need to be able to handle CORS and get SSL certificates for the API endpoint. Given that the API's endpoint seems somewhat arbitrary (sorry if I didn't read through available information about API endpoints) and that it is different from the EC2 instance that the API is running on, I am not sure how to install a SSL certificate for my API server. If I provide the url for the API on Amazon Certificate Manager, it says that it's not a valid domain. I know that this part of the docs says that all APIs are accessible through HTTPS, and surely does work with the -k
option using curl
, it will say that the certificate is invalid on a web app's AJAX call.
I have also already asked a question on how to enable CORS for my API on #541, but I'm asking how to configure it here again for anyone having to deal with these set of issues in taking their deployment into the final step of production.
FYI I'm using spot instances to serve my API.