You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mtadeveloperresources
Hello,
I am developing a web application that uses the MTA Bus Time API to fetch real-time vehicle data. While the API works perfectly in a Dart script (dart run), I am encountering a CORS issue when running the app in the browser.
It seems the Access-Control-Allow-Origin header in the API response is set tohttps://bustime-beta.mta.info, which does not match my app's origin (http://localhost:16132). This is causing the browser to block the request.
Questions:Is there a way to configure the API to allow requests from my app's origin during development? Are there any recommended workarounds for handling this issue in a web app?