来自Visual Studio 2015 Ripple的错误400(错误请求) [英] Error 400 (Bad Request) from Visual Studio 2015 Ripple

查看:72
本文介绍了来自Visual Studio 2015 Ripple的错误400(错误请求)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从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.


  1. 关闭所有Chrome实例。

  2. 使用-disable-web-security 参数打开Chrome。

  3. 由Ripple运行应用。 / li>
  4. 在页面的右侧面板上,单击设置->跨域代理,并将其设置为禁用

  5. 刷新应用并运行。

  1. Close all Chrome instances.
  2. Open Chrome with the --disable-web-security argument.
  3. Run the app by Ripple.
  4. On the right panel of the page, click setting -> cross domain proxy, and set it to disable.
  5. Refresh the app and run.

这篇关于来自Visual Studio 2015 Ripple的错误400(错误请求)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆