chesslablab/spablab

After creating the environment and doing all the steps it gave me this error and the certificate is not valid, may I know how to fix it?

programarivm opened this issue · 1 comments

          After creating the environment and doing all the steps it gave me this error and the certificate is not valid, may I know how to fix it?

Screenshot of the issue:
Screenshot 2024-02-11 154008

Originally posted by @HappyLife2 in #721 (comment)

Thank you @HappyLife2 for opening this issue.

What is happening is that your browser is querying the production API and the request is being rejected because of CORS.

Screenshot 2024-02-11 21:04:25

ui.chesslablab.org/:1 Access to fetch at 'https://api.chesslablab.org/v1/stats/opening' from origin 'https://ui.chesslablab.org:9443' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header has a value 'https://ui.chesslablab.org' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

The Chess API needs to be set up on your computer accordingly because at this moment there is no staging environment up and running. An entire full-stack environment needs to be setup in order to solve issues.