mapbox / mapbox/mapbox-gl-directions

CORS Blocked

Open
#309 0 comments 0 reactions 0 assignees View on GitHub
auto-triaged question
Dominant language
JavaScript
Stars
255
Forks
130
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Research direction

No repository file, test, or entry point is identified; first verify whether the report concerns mapbox-gl-directions rather than the WordPress site or the geotimezone API. Reproduce the request and establish whether this repository can address the CORS response; done would require a confirmed, project-relevant resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wordpress
Domain
api, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.