Skip to content

Commit 783f7b8

Browse files
committed
Cors Duzenlemeleri
1 parent add7d8e commit 783f7b8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/components/API/API.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const fetchMeasurement = async () => {
55

66
try {
77
const response = await fetch(
8-
`${cors_anywhere}/https://acikveri.buski.gov.tr:9016/acik/yesil/v1/baraj/dolulukOrani/gunluk?barajID=1`
8+
`https://${cors_anywhere}/https://acikveri.buski.gov.tr:9016/acik/yesil/v1/baraj/dolulukOrani/gunluk?barajID=1`
99
);
1010
if (!response.ok) throw new Error("Network response was not ok.");
1111
const data = await response.json();

src/components/API/API2.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const fetchMeasurement2 = async () => {
55

66
try {
77
const response = await fetch(
8-
`${cors_anywhere}/https://acikveri.buski.gov.tr:9016/acik/yesil/v1/baraj/dolulukOrani/gunluk?barajID=2`
8+
`https://${cors_anywhere}/https://acikveri.buski.gov.tr:9016/acik/yesil/v1/baraj/dolulukOrani/gunluk?barajID=2`
99
);
1010
if (!response.ok) throw new Error("Network response was not ok.");
1111
const data = await response.json();

src/pages/General/GeneralSituation.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const GeneralSituation = () => {
1010
const fetchData = async () => {
1111
try {
1212
const response = await fetch(
13-
`${cors_anywhere}/https://acikveri.buski.gov.tr:9016/acik/yesil/v1/baraj`
13+
`https://${cors_anywhere}/https://acikveri.buski.gov.tr:9016/acik/yesil/v1/baraj`
1414
);
1515
const data = await response.json();
1616
const formattedData = data.sonuc.map((baraj) => ({

src/pages/GenerativeAI/Generative.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Generative = () => {
1717
const fetchData = async () => {
1818
try {
1919
const response = await fetch(
20-
`${cors_anywhere}/https://www.beo.org.tr/nobet-belediye`
20+
`https://${cors_anywhere}/https://www.beo.org.tr/nobet-belediye`
2121
);
2222
if (!response.ok) {
2323
throw new Error("Veri çekme işlemi başarısız");

0 commit comments

Comments
 (0)