We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, downloaded the demo and provided the credentials, after running:
npm install npm run dev
The server now listens on port 5000
So far, so good. When I access the site it shows up fine but when trying to login, I keep getting:
POST https://api.cometchat.com/v1.8/users/superhero1/auth_tokens 500 localhost/:1 Access to fetch at 'https://api.cometchat.com/v1.8/users/superhero1/auth_tokens' from origin 'http://localhost:5000' has been blocked by CORS policy: 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.
Any ideas?
The text was updated successfully, but these errors were encountered:
Hello @freenetbrasil,
Please try to run on https://localhost:5000, and you will not get that error, let us know if that solves your issue.
Sorry, something went wrong.
No luck, it seems it's not listening on https on port 5000, just http.
Try running following command for https:-
npm run sdev
No branches or pull requests
Hi, downloaded the demo and provided the credentials, after running:
npm install
npm run dev
The server now listens on port 5000
So far, so good. When I access the site it shows up fine but when trying to login, I keep getting:
POST https://api.cometchat.com/v1.8/users/superhero1/auth_tokens 500
localhost/:1 Access to fetch at 'https://api.cometchat.com/v1.8/users/superhero1/auth_tokens' from origin 'http://localhost:5000' has been blocked by CORS policy: 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.
Any ideas?
The text was updated successfully, but these errors were encountered: