mapbox-gl-directions
mapbox-gl-directions copied to clipboard
CORS Blocked
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.