I have developed SPFx React Webpart Fetching Timeapi Data ,getting CORS error, want someone to troubleshoot the issue

Job ID: 37906191

Budget: ₹1,500 – ₹12,500 INR

I have developed SPFx React Webpart Fetching Timeapi Data ,getting CORS error, want someone to troubleshoot the issue

I can give complete solution file

It will:
- Fetch current time and date.
- Display the fetched information as a text string on the webpart.
- Update data only on page load, it doesn't need to refresh it at regular intervals.

The ideal developer should have significant experience in SPFx development using React, and understand APIs, specifically Timeapi. Clear and efficient code is vital and knowledge around user interface for displaying the fetched information in a Restful way is advantageous.