-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
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
Access-Control-Allow-Credentials’ header is ” #8687
Comments
@nirina-apiqa, that appears to be a CORS error, emitted by your browser. I'm assuming you're running Mattermost on If you're just developing, you can follow the instructions on https://docs.mattermost.com/administration/config-settings.html?highlight=cors#enable-cross-origin-requests-from to override the CORS setting in Mattermost and allow the connection. Another option might be to develop a plugin which runs as part of Mattermost. See https://developers.mattermost.com/extend/plugins/ for more details. Let us know if this resolves your issue :) |
Has |
Hi @nirina-apiqa , we haven't received an update so we'll assume that the problem is fixed or is no longer valid. If you still experience the same problem, try upgrading to the latest version. If the issue persists, reopen this issue with the relevant information and we'd be glad to help you where we can. |
@lieut-data @amyblais The official 5.0.0 version seems to have the same problem, where following the instructions for setting CORS to accept "*" doesn't seem to work. |
Hi @iampeter! Here's something that works for me (in Chrome), when I load this file directly into the browser:
With Can you describe what you're seeing? |
@lieut-data maybe this should go to the
|
Reported my problem as mattermost/mattermost-redux#557 |
Sounds good -- let's carry on the conversation there. |
Summary
I got Access-Control-Allow-Credentials’ header is ‘’ in response after trying to connect with mattermost server along with its Rest api
Steps to reproduce
Install mattermost server ver 4.9 deb file for linux
Configure it to run on localhost
setup a javascript application to interact with the server using the mattermost javascript driver located at https://github.com/mattermost/mattermost-redux
Try to connect a user account to the server using the api call POST http://localhost:8065/api/v4/users/login
Expected behavior
After entering the right credentials, I expected to receive session token
Observed behavior (that appears unintentional)
I got an error: Response to preflight request doesn’t pass access control check: Credentials flag is ‘true’, but the ‘Access-Control-Allow-Credentials’ header is ‘’. It must be ‘true’ to allow credentials
Possible fixes
set header Access-Control-Allow-Credentials to true
The text was updated successfully, but these errors were encountered: