mapbox / mapbox/mapbox-gl-directions
CORS Blocked
- 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
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