我是新离子应用程序,目前正在讨论像whatsapp聊天。离子什么是应用程序聊天错误:登录Facebook的不工作
在服务器中,我启动了app.js,它显示已连接到mongodb。
在客户端,我运行离子服务并在浏览器中打开url。但是当我点击登录Facebook没有任何反应。在控制台中我看到下面的错误
Attempt local load: :8100/#/login:1 XMLHttpRequest cannot load http://myip:5984/registeruser/?_nonce=1479196427607 . No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' http://myip:8100 ' is therefore not allowed access.
app.js:47 Uncaught ReferenceError: cordova is not defined(…)
编辑
科尔多瓦被链接为
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>
在服务器端启用CORS并确保你已加载cordova js –
@Sa E Chowdary crodova已链接,仍显示错误 – scriptkiddie1