Here's your solution.
It is a server-side issue. Your server is not allowing or accepting your cross-origin request. But no worries, it's 10 mins' work.
All you need to do is configure your server. Doing that will allow or accept your request.
Steps:
#1. Open the Server's CPanel & then open CPanel File Manager.
#2. Look for the "public_html" directory.
#3. Look for the ".htaccess" file (Make sure you enable the view for hidden files.), Still, if you don't find the ".htaccess" file, create the ".htaccess" file.
#4. Paste the below-mentioned code in the ".htaccess" file:
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET,PUT,POST,DELETE"
Header set Access-Control-Allow-Headers "Content-Type, Authorization"
#5. Save the ".htaccess" file.
Important:
If you have the SSL certificate, consider using the "https://" prefix. If you don't have the SSL certificate, consider using the "http://" prefix.
Reference link:
https://gist.github.com/nixta/0b98d7975562bc31c4c9