422状态-CloudFront到ELB连接

问题描述

我创建了两个EC2实例,并将它们放在Loadbalancer上。​​

通过使用Application LoadBalancer URL,我可以登录该EC2实例并完成所有操作。

但是当我将Cloudfront配置为ELB

  1. 使用Cloudfront SSL
  2. 云前端到端口80上的ELB连接

,然后在浏览器中单击CloudFront URL,我可以获取应用程序的登录页面登录我的应用程序时,它将出现以下错误

sign_in:1 Failed to load resource: the server responded with a status of 422 ()

我的Cloudfront设置如下:

enter image description here

*我正在使用Nginx服务器。

Nginx中,我还配置了:

add_header 'Access-Control-Allow-Origin' '*' always;

问题:CloudFront或Nginx服务器中是否缺少任何设置?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)