开发者

jQuery jFeed plugin working with the domain with www and without it

I use jQuery jFeed plugin to fetch rss feed from WordPress blog and show on the main page of the site. So, it works fine when I go to http://site-using-jfeed.com. But when go to http://www.site-using-jfeed.com, it doesn't load the feed and nothing is shown. I suppose there is something about cross-domain functionali开发者_运维问答ty. What can I do about that?


It's due to the same origin policy, and you won't be able to get data from other servers unless you fetch it on the back-end or use JSONP.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜