use our own proxy server

This commit is contained in:
jinhojang6 2020-02-18 00:38:19 +09:00
parent 009e748e77
commit 6dbbd29475
No known key found for this signature in database
GPG Key ID: 0E7AA62CB0D9E6F3
2 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ let parser = new Parser({
}
});
const CORS_PROXY = "https://cors-anywhere.herokuapp.com/";
// const CORS_PROXY = "https://cors-anywhere.herokuapp.com/";
export const fetchPodcast = url => dispatch => {
dispatch({
@ -24,7 +24,7 @@ export const fetchPodcast = url => dispatch => {
}
})
// Make GET request to Node service to parse RSS feed and send back JSON
parser.parseURL(CORS_PROXY + url, function(err, feed) {
parser.parseURL(url, function(err, feed) {
if (feed) {
const title = feed.title
const website = feed.link

View File

@ -11,7 +11,7 @@ export const podcasts = [
category: 'status',
name: 'Everything Status',
creator: 'Henry Dada',
link: 'https://feeds.soundcloud.com/users/soundcloud:users:741837922/sounds.rss',
link: 'https://feeds-soundcloud-proxy.status.im/users/soundcloud:users:741837922/sounds.rss',
img:
'https://lh3.googleusercontent.com/W5mQLucviakmoHAFldUZbtFkTHw91vbcQk0w8o3woHEm9c4lpaMqi4cmY6bl3HmTSTnCxL5dvwwbDQa0eVGHrT16dhjEQmoAvg1Mk1Gjy-i3QtJjFRk1o5RxaWQ0BDfVn3oTntFF=w2400'
},
@ -19,7 +19,7 @@ export const podcasts = [
category: 'status',
name: 'Status Korean Podcast',
creator: 'Jinho Jang',
link: 'https://feeds.soundcloud.com/users/soundcloud:users:772478986/sounds.rss',
link: 'https://feeds-soundcloud-proxy.status.im/users/soundcloud:users:772478986/sounds.rss',
img:
'https://lh3.googleusercontent.com/D5bCVgLCmW4s1CRTZsZaK5ad7sCHdMxo7VrVBbbPNgGIN8djhXunatFxwvsY5_RM_h4IroxbzroUlLbZDMNGXWN3TOo5Y6g18cS0Q2IN7r_4TSRrfxOpvtAzLSTDgrBeNCTEpAX32w=w2400'
},
@ -43,7 +43,7 @@ export const podcasts = [
category: 'featured',
name: 'Aibeats',
creator: 'Lilsiri.eth Ξ',
link: 'https://feeds.soundcloud.com/users/soundcloud:users:560409111/sounds.rss',
link: 'https://feeds-soundcloud-proxy.status.im/users/soundcloud:users:560409111/sounds.rss',
img:
'https://lh3.googleusercontent.com/NJ_OW1D8tM5Ivm87Vci9WX7hCfdKgoHMQKlq8Zr-g-ZHfwQ5O_O6S7iHV-qHVWuEBNyotU63nvxF32agEK10dgpzePeXsRI4IIdYvt2SiRABwsUZVw35delHGckGXVIbjGQ--7tTqA=w2400'
},