quran / quran.com-frontend-v2

https://previous.quran.com
GNU General Public License v3.0
456 stars 199 forks source link

CORS Error on Playing Audio #394

Closed Yusadolat closed 3 years ago

Yusadolat commented 3 years ago

How to reproduce: Go to Suratul Tawbah: Toggle the overlay player to play the audio.

You will get an error like this Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://mirrors.quranicaudio.com/everyayah/Husary_Muallim_128kbps/009001.mp3. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://mirrors.quranicaudio.com/everyayah/Husary_Muallim_128kbps/009002.mp3. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

Web Browser: Mozilla Firefox

naveed-ahmad commented 3 years ago

@ahmedre you can add Access-Control-Allow-Origin header on quranicaudio as well?

ahmedre commented 3 years ago

fixed and verified now working. jazakumAllah khairan for reporting.