DarkHacker
Hectopat
Daha fazla
- Sistem Özellikleri
- Nvidia GeForce RTX 5090
384 GB Ram
Asus Rog Strix
8TB Ssd
ı9 14900
- Cinsiyet
- Erkek
- Meslek
- Yazılımcı
Selamlar, PHP Kodumda CORS Headers koyuyorum. Amacım yaptığım bir site için google TTS 'nin bir linkini kullanmak. (https://translate.google.com/translate_tts?ie=UTF-8&client=tw-ob&tl=en&q=hello how are you) Fakat index.html dosyamdan fetch etmeye çalışınca CORS uyarısı veriyor. Sebebi ne olabilir? Çözümü nedir? Yardımcı olan arkadaşlara şimdiden teşekkür ederim. (Not: Server için ProFreeHost ve InfinityFree kullandım, free host olduğu içinde olabilir)
Live reload enabled.
favicon.ico:1 Failed to load resource: the server responded with a status of 404 (Not Found)
test.html:1 Access to fetch at 'https://pixapis.unaux.com/tts.php?json=1&text=selam&lang=auto&speed=1&pitch=1' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.[linki kaldırdım bu linki şu an kullanamazsınız]
pixapis.unaux.com/tts.php?json=1&text=selam&lang=auto&speed=1&pitch=1:1 Failed to load resource: net::ERR_FAILED
test.html:149 TypeError: Failed to fetch
at generateTTS (test.html:117:32)
at HTMLButtonElement.onclick (test.html:72:41)
favicon.ico:1 Failed to load resource: the server responded with a status of 404 (Not Found)
test.html:1 Access to fetch at 'https://pixapis.unaux.com/tts.php?json=1&text=selam&lang=auto&speed=1&pitch=1' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.[linki kaldırdım bu linki şu an kullanamazsınız]
pixapis.unaux.com/tts.php?json=1&text=selam&lang=auto&speed=1&pitch=1:1 Failed to load resource: net::ERR_FAILED
test.html:149 TypeError: Failed to fetch
at generateTTS (test.html:117:32)
at HTMLButtonElement.onclick (test.html:72:41)
Uzun olunca hata veriyor linke koydum: Kod
Uzun olunca hata veriyor linke koydum: Kod