# React frontend only app for fetching data

**URL:** <https://opendataforum.transport.nsw.gov.au/t/react-frontend-only-app-for-fetching-data/8597>\
**Category:** How to\
**Created:** [April 8, 2026, 11:20pm UTC](https://opendataforum.transport.nsw.gov.au/t/react-frontend-only-app-for-fetching-data/8597 "2026-04-08T23:20:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sukhjinder.saini](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sukhjinder.saini](https://opendataforum.transport.nsw.gov.au/u/sukhjinder.saini)\
**Post date:** [April 8, 2026, 11:20pm UTC](https://opendataforum.transport.nsw.gov.au/t/react-frontend-only-app-for-fetching-data/8597/1 "2026-04-08T23:20:53Z")

</div>

I am working on frontend only react app where I need to get data from “[`https://api.transport.nsw.gov.au/v1/live/hazards/`](https://api.transport.nsw.gov.au/v1/live/hazards/)“ but it gives me CORS issues, is it necessary to make the api call through a server?

---

<div class="post-metadata">

**Author:** ![Suraj](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Suraj](https://opendataforum.transport.nsw.gov.au/u/Suraj)\
**Post date:** [April 9, 2026, 2:58am UTC](https://opendataforum.transport.nsw.gov.au/t/react-frontend-only-app-for-fetching-data/8597/2 "2026-04-09T02:58:47Z")

</div>

Hi @sukhjinder.saini ,

Could you please share the steps you are following to access the API data and send it to our email, along with the screenshots? This will allow us to review the issue and guide you accordingly.

Email - apigateway.support@transport.nsw.gov.au
