mapbox-gl-directions icon indicating copy to clipboard operation
mapbox-gl-directions copied to clipboard

CORS Blocked

Open codingbuddy995 opened this issue 1 year ago • 0 comments

in my wordpress site i am trying to access the current time using geotimezone api but i am facing this error in console:

Access to fetch at 'https://api.geotimezone.com/public/timezone?latitude=30.05&longitude=31.25' from origin 'https://prayerintime.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

can any one give me the solution to this? i would be very thankful.

codingbuddy995 avatar Jan 08 '24 07:01 codingbuddy995