Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https-redirect-nodejs throw wss error #102

Open
junhua opened this issue Jan 6, 2020 · 3 comments
Open

https-redirect-nodejs throw wss error #102

junhua opened this issue Jan 6, 2020 · 3 comments

Comments

@junhua
Copy link

junhua commented Jan 6, 2020

When adding https-redirect-nodejs to .ebextension and push to server, the service throws the following error:

SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.

@dankhen
Copy link
Contributor

dankhen commented Jan 6, 2020

@junhua Did you do the prerequisite steps mentioned in the comment?

#### This configuration file configures Nginx for Node.js environments to redirect HTTP
#### requests on port 80 to HTTPS on port 443 after you have configured your environment to support
#### HTTPS connections:
####
#### Configuring Your Elastic Beanstalk Environment's Load Balancer to Terminate HTTPS:
####  http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-elb.html
####
#### Terminating HTTPS on EC2 Instances Running Node.js:
####  http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/https-singleinstance-nodejs.html

@junhua
Copy link
Author

junhua commented Jan 7, 2020

yes @dankhen

@dankhen
Copy link
Contributor

dankhen commented Jan 7, 2020

Thank you @junhua. I'll contact our team and see if I can get an explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants