The error "No 'Access-Control-Allow-Origin' header is present on the requested resource" occurs because the server you are trying to access does not allow cross-origin requests from your domain. This is due to CORS (Cross-Origin Resource Sharing) restrictions.
Modify the server to include the Access-Control-Allow-Origin
header in the response:
Access-Control-Allow-Origin: *
Access-Control-Allow-Origin: https://your-allowed-domain.com
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Headers: Content-Type