I am using Spring boot as a back end. When ever i try to hit the API using HTTP client, the requests are sending using OPTIONS instead of POST,GET. And also in front end i am getting the below CORS error.
Access to XMLHttpRequest at 'https://..........' from origin 'http://localhost:8100' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource
Can anyone help me with this.
Thanks in advance.