【发布时间】:2017-07-17 03:22:42
【问题描述】:
我有一个在 aws ec2 上运行的 JS 应用程序 - 对应用程序的原始调用是 http - 但是当更改为 https 时,调用被拒绝 - 抱歉,这不详细 - 项目包括 mongodb 节点 js 等......如果任何人认为他们可以提供帮助,将提供更多可能需要的详细信息和代码
inspect = 混合内容:“https://mediataplatform.com/COU_TEST.html”处的页面是通过 HTTPS 加载的,但请求了不安全的 XMLHttpRequest 端点“http://ec2-54-159-65-110.compute-1.amazonaws.com:3000/storeDetails”。此请求已被阻止;内容必须通过 HTTPS 提供。
strVar += " <form id=\"loginform\" name=\"loginform\"
method=\"POST\" action=\"http:\/\/ec2-54-159-65-110.compute-
1.amazonaws.com:3000\/storeDetails\">";
strVar += " <input type=\"hidden\" id = 'selectedEmotion' name =
\"selectedEmotion\" value='99'>";
ReferenceError: collection is not defined
at /home/ubuntu/expressproject/routes/index.js:118:3
at Layer.handle [as handle_request]
(/home/ubuntu/expressproject/node_modules/express/lib/router/layer.js:95:5)
at next
(/home/ubuntu/expressproject/node_modules/express/lib/router/route.js:131:13)
at Route.dispatch
(/home/ubuntu/expressproject/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request]
(/home/ubuntu/expressproject/node_modules/express/lib/router/layer.js:95:5)
at
/home/ubuntu/expressproject/node_modules/express/lib/router/index.js:277:22
at Function.process_params
(/home/ubuntu/expressproject/node_modules/express/lib/router/index.js:330:12)
at next
(/home/ubuntu/expressproject/node_modules/express/lib/router/index.js:271:10)
at /home/ubuntu/expressproject/node_modules/express-mongo-db/index.js:23:5
【问题讨论】:
-
您必须包含更多细节,尤其是代码。
标签: javascript https