来自Visual Studio 2015 Ripple的错误400(错误请求) [英] Error 400 (Bad Request) from Visual Studio 2015 Ripple
问题描述
我正在尝试从Visual Studio的2015 Android Ripple Emulator作为WCF服务进行访问,但出现错误400:错误的请求。我修改了在C:\Users\UserjsAppData\Roaming\npm\node_modules\vs-tac\node_modules\ripple-emulator\lib\server\proxy中找到的proxy.js .js
I am trying to access as WCF service from Visual Studio's 2015 Android Ripple Emulator but I'm getting an error 400: Bad Request. I modified the proxy.js found in C:\Users\User\AppData\Roaming\npm\node_modules\vs-tac\node_modules\ripple-emulator\lib\server\proxy.js
来自:
app.use(express.bodyParser());
至:
app.use(bodyParser.text({type: '*/*'}));
但这不能解决问题,因此正尝试按以下方式访问WCF服务- http:// localhost:4400 / ripple / xhr_proxy?tinyhippos_apikey = ABC& tinyhippos_rur ... http %3A // example.com / Service.svc / GoodToGo%3Fmessage%3DOK
but this did not solve the problem and is trying to access the WCF service as follows - http://localhost:4400/ripple/xhr_proxy?tinyhippos_apikey=ABC&tinyhippos_rur…http%3A//example.com/Service.svc/GoodToGo%3Fmessage%3DOK
是否有人设法解决了这个问题(我在通过此线程后并没有解决- Expressjs原始正文)
Has anyone managed to solve the issue (I did not manage after going through this thread - Expressjs raw body)
推荐答案
您可以通过禁用网络安全性来避免此错误。
You can avoid this error by disabling the web security.
- 关闭所有Chrome实例。
- 使用
-disable-web-security
参数打开Chrome。 - 由Ripple运行应用。 / li>
- 在页面的右侧面板上,单击
设置->跨域代理
,并将其设置为禁用
。 - 刷新应用并运行。
- Close all Chrome instances.
- Open Chrome with the
--disable-web-security
argument. - Run the app by Ripple.
- On the right panel of the page, click
setting -> cross domain proxy
, and set it todisable
. - Refresh the app and run.
这篇关于来自Visual Studio 2015 Ripple的错误400(错误请求)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!