Search code examples
javascriptjquerycross-domainjfeed

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 functionality. What can I do about that?


Solution

  • 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.