dart: debugging client/server communication for dart client and existing rest api?

跟風遠走 提交于 2019-12-01 01:05:05
Alexandre Ardhuin

Once Access-Control-Allow-Origin: * header has been added to every response of your REST API (don't forget OPTIONS request - see perlight request), you should be able to use it without problem with XMLHttpRequest and debug as it was on the same server.

Under development you can also use --disable-web-security option to launch Dartium ( see Disable same origin policy in Chrome )

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!