Possible Causes
The CORS configuration of the API is incorrect.
Solution
Go to the API details page, click Edit, and check whether CORS is enabled. If it is not, enable it.
Parameters are as follows: