Skip to content
This repository was archived by the owner on Apr 2, 2021. It is now read-only.

Unable to fetch feed , Error Cross-Origin Request Blocked #25

@mostafadeveloper

Description

@mostafadeveloper

Hi
i recently try to use jfeed to get feed and show feed content , but i can't see anythings ... then i use firefox console and see this below error:

" Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://news.google.com/news?pz=1&cf=all&ned=us&hl=en&output=rss. This can be fixed by moving the resource to the same domain or enabling CORS. "

My HTML File--->

<!DOCTYPE HTML>
<html>
<head><title></title>
<meta charset="UTF-8"/>
<script type="text/javascript" src="./jquery.js"></script>
<script type="text/javascript" src="build/dist/jquery.jfeed.pack.js"></script>


</head>
<body>
<div class="panel">
<script type="text/javascript">
jQuery.getFeed({
    //google new rss link
   url     : 'https://news.google.com/news?pz=1&cf=all&ned=us&hl=en&output=rss',
   success : function (feed) {
      console.log(feed.title);
      // do more stuff here
   }
});
</script>
</div>

</body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions