fossology / FOSSologyUI

Repository to hold the new UI framework for FOSSology built with React
https://fossology.github.io/FOSSologyUI/
GNU General Public License v2.0
49 stars 88 forks source link

Cannot Connect React UI to backend #192

Closed d-e-v-esh closed 2 years ago

d-e-v-esh commented 2 years ago

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:

Screenshot from 2022-03-24 00-14-59

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.

  1. I have created the .env file.
  2. I added http://localhost:3000 to Allowed origins for REST API in the fossology config.

Screenshot from 2022-03-24 00-15-30

Still, I am not able to log in. Am I missing something? Please Help 🙏🙏

GMishx commented 2 years ago

Duplicate of #181