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 excepted to receive session token but got this 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