I am not able to connect the React UI to the backend and log in as fossy. Whenever I log in, I am getting this CORS error:
Access to fetch at 'http://localhost/repo/api/v2/info' from origin 'http://localhost:3000' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I have created the .env file.
I added http://localhost:3000 to Allowed origins for REST API in the fossology config.
Still, I am not able to log in. Am I missing something? Please Help 🙏🙏
Description
I am not able to connect the React UI to the backend and log in as
fossy
. Whenever I log in, I am getting this CORS error:http://localhost:3000
toAllowed origins for REST API
in the fossology config.Still, I am not able to log in. Am I missing something? Please Help 🙏🙏