AJAX and NS_ERROR_DOM_BAD_URI error

安稳与你 提交于 2019-12-01 17:16:16

You'll have to use JSONP to do cross domain as far as I know - it's a security exception in AJAX. JQuery handles it nicely but, you will have to have the server reply modified to match it.

I have done an OSS project for Social Actions that does this using a PHP proxy. You can look at it here: http://os.adamaltemus.com/social-actions/

This error occurs if you have given different domain name in the code. http://hiox.org/index.php?id=2737

Stefan Brendle

It's also possible if you're currently on a http webpage and are trying to send an AJAX call to a https website on the same domain.

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