Set CORS URLs / Domains to a particular site where you are consuming API's.
Now hit the POST API.
You will get the below error in console.
- Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xyz.com' is therefore not allowed access.
I have tested this issue with the latest package and working fine for me with multiple domains. If you face issue with please add steps to reproduce it.
Steps to reproduce -
You will get the below error in console. - Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xyz.com' is therefore not allowed access.