2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
0
I am not very clear on what your architecture is - as you mention using a custom domain with CloudFront and then Elastic Load Balancer as well.
If your requests are going to CloudFront you need:
- Make sure that you have the corect alternate domain setup on your CloudFront distribution. Read https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html
- You need to either use AWS Certificate Manager, to issue a certificate that at least contains the common name that you wish to use for your custom domain, or you need to obtain a certificate from a public CA and import it to ACM.
- Configure the CloudFront distribution to use the certificate from 2
- The ELB at this point can have any certificate, as CloudFront will not validate the certificate when making origin calls, but you can put the same certificate onto the ALB using ACM.
- Configure the ALB to be a origin for CloudFront.
- Configure your DNS host name that matches your custom domain to point to the CloudFront distribution name.
Wait for DNS to propagate - and it should work.
0
Thanks Max, I solved this problem doing:
First: requesting another certificate for my load balancer dns using a subdomain of my custom domain Second: Resgistered a subdomain pointing to my load balancer in Route 53 and configured the listener with the subdomain
Then, the error about requesting to a different domain (cloud front (custom domain) > load balancer (load balancer dns) ) was solved, now is like: cloud front (custom domain) > load balancer (subdomain of custom domain)
Cors error solved!
respondido há 5 meses
Conteúdo relevante
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há um ano