Skip to content

Commit 5fa8347

Browse files
authored
Update fetchRssData.js
1 parent f74f819 commit 5fa8347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/fetchRssData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import axios from "axios";
22
import { model } from "./model/index.js";
33

44
export const fetchRssData = (link) => {
5-
const proxyUrl = `https://allorigins.hexlet.app/url=${encodeURIComponent(link)}&disableCache=true`;
5+
const proxyUrl = `https://allorigins.hexlet.app/?url=${encodeURIComponent(link)}&disableCache=true`;
66
console.log(proxyUrl.searchParams.get('url'));
77
return axios
88
.get(proxyUrl)

0 commit comments

Comments
 (0)