ajax problem - 200 OK in firebug but red message with no response body

前端 未结 6 1705
一个人的身影
一个人的身影 2021-02-18 16:21

I have small ajax problem related to cross domain as i see it.

On localmachine i created html example with some ajax: in registration text field user types \'username\',

6条回答
  •  渐次进展
    2021-02-18 16:44

    You cannot use AJAX to read replies from other domains.

    Your HTML must be on the same server (and same domain, port, and protocol) as the AJAX servlet.

提交回复
热议问题