为什么 Chrome 从 AWS CloudFront 分发中看到 SSL 而不是 firefox 或 edge
Why does Chrome see SSL but not firefox or edge from AWS CloudFront distribution
这是我的设置:
- 用于静态网站的 S3 存储桶。 GatsbyJS
生成的站点
- CloudFront 分布
- 为 mydomain.com 和 www.mydomain.com
配置的 CloudFront 备用域名
- 将 SSL(来自 AWS Cert Manager)附加到我的 mydomain.com 和 www.mydomain.com
的 CloudFront 分配
- Route53:一条记录mydomain.com到CloudFront域
- Route53:CName 记录 www.mydomain.com 到 mydomain.com
这是我的经历
- mydomain.com:https 在 Chrome 上很好,在 Firefox 或 Edge
上不行
- www.mydomain.com:Chrome、Firefox 或 Edge
没有 https
我确定 'www' 部分的配置有问题。最奇怪的是 Chrome 与其他浏览器不识别 HTTPS
您是否尝试在 Cloudfront 分发版的 DefaultCacheBehavior 下将 ViewerProtocolPolicy 设置为 'redirect-to-https'?
这是我的设置:
- 用于静态网站的 S3 存储桶。 GatsbyJS 生成的站点
- CloudFront 分布
- 为 mydomain.com 和 www.mydomain.com 配置的 CloudFront 备用域名
- 将 SSL(来自 AWS Cert Manager)附加到我的 mydomain.com 和 www.mydomain.com 的 CloudFront 分配
- Route53:一条记录mydomain.com到CloudFront域
- Route53:CName 记录 www.mydomain.com 到 mydomain.com
这是我的经历
- mydomain.com:https 在 Chrome 上很好,在 Firefox 或 Edge 上不行
- www.mydomain.com:Chrome、Firefox 或 Edge 没有 https
我确定 'www' 部分的配置有问题。最奇怪的是 Chrome 与其他浏览器不识别 HTTPS
您是否尝试在 Cloudfront 分发版的 DefaultCacheBehavior 下将 ViewerProtocolPolicy 设置为 'redirect-to-https'?