Skip to content

Commit

Permalink
Try some cors permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
phocks committed Aug 16, 2020
1 parent 35b554b commit c3a803d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
"background": {
"scripts": ["browser-polyfill.js", "dist/background.js"]
},
"permissions": ["alarms", "storage"],
"permissions": [
"alarms",
"storage",
"https://www.abc.net.au/news/feed/51120/rss.xml"
],
"options_ui": {
"page": "options.html",
"browser_style": false
Expand Down
3 changes: 2 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const getLatest = () => {
// Glitch has started charging so we want to find an
// alternative sometime soon perhaps.
// fetch("https://newsy.glitch.me/api/rss")
fetch("https://phocks.org/proxy_rss/")
// fetch("https://phocks.org/proxy_rss/")
fetch("https://www.abc.net.au/news/feed/51120/rss.xml")
.then((res) => res.text())
.then((text) => {
console.log(text);
Expand Down

0 comments on commit c3a803d

Please sign in to comment.