Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

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? #722

Closed
programarivm opened this issue Feb 11, 2024 · 1 comment
Labels
question Further information is requested

Comments

@programarivm
Copy link
Member

          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)

@programarivm programarivm added bug Something isn't working question Further information is requested and removed bug Something isn't working labels Feb 11, 2024
@programarivm
Copy link
Member Author

programarivm commented Feb 11, 2024

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant