Skip to content

Commit d82fcba

Browse files
committed
fix: получение данных через прокси
1 parent 6587123 commit d82fcba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/js/fetchRssData.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +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/get?disableCache=true&url=${encodeURIComponent(link)}`;
6-
// console.log(proxyUrl.searchParams.get('url'));
5+
const proxyUrl = `https://allorigins.hexlet.app/raw?get?disableCache=true&url=${encodeURIComponent(link)}`;
76
return axios
87
.get(proxyUrl)
98
.then((response) => {

0 commit comments

Comments
 (0)