我使用node.js背后的nginx.The node.js应用程序使用http-代理。
基本上,请求到达nginx,然后被代理到节点应用程序:
- if static files are requested, the node.js app serves them
- if non static files are requested, the node.js app proxyies the request to a second node.js app (using http-proxy npm).
当nginx不在图片中时,第二种情况工作得很好。当添加nginx时,响应非常奇怪:它被奇
我已经开始建立一个Vue.js网站,使用AWS放大器作为后端。
在其中一个页面中,我需要访问一个外部url地址,从它获得一个响应,并查看对用户的响应。
这是很重要的说,网址没有链接到我的网站,它与我无关。这完全是外在的,我无法控制。
我多次尝试使用许多方法访问该url,但到目前为止,每次尝试访问url时都会收到以下错误消息:
:8080/#/myPage:1 Access to XMLHttpRequest at 'https://~URL~?~DATA~' from origin 'http://localhost:8080' has been blocked