xsoar initial admin login fails - websockets error and CSRF token match problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

xsoar initial admin login fails - websockets error and CSRF token match problem

L0 Member

I installed xsoar 6.6 according to the instructions and am using nginx as a front-end.  I also configured nginx according to the instructions, but I am connecting to xsoar from nginx via http and port 8080 (as opposed to https/443 as used in the example nginx config).

I created the otc.conf.json file with the initial admin user and restarted the server, but I cannot login.

In the Chrome console, I see this when I open the xsoar page:

light-bundle-1647266668075.js?v=1647266668075:38 WebSocket connection to 'wss://xsoar.example.com/websocket' failed:
Oe @ light-bundle-1647266668075.js?v=1647266668075:38
(anonymous) @ light-bundle-1647266668075.js?v=1647266668075:315
n @ light-bundle-1647266668075.js?v=1647266668075:1
(anonymous) @ light-bundle-1647266668075.js?v=1647266668075:1
(anonymous) @ light-bundle-1647266668075.js?v=1647266668075:1

In the xsoar server.log file, I see these each time I try to login:

2022-09-29 05:51:37.4687 error CSRF values not match (source: /builds/GOPATH/src/code.pan.run/xsoar/server/web/middleware.go:447)

I have no idea what the problem is.

Does anyone have a clue?

Brian Hill
BCH Technical Services, LLC
2 REPLIES 2

Community Team Member

Hi @bchill ,

 

In order to get better traction for this I'm moving this discussion to the Cortex XSOAR area.

 

Cheers,

-Kiwi.

 
LIVEcommunity team member, CISSP
Cheers,
Kiwi
Don't forget to hit that Like button if a post is helpful to you!

L0 Member

Update:

The websockets error also comes up when I set up xsoar directly on 443 (i.e. w/o nginx, etc), but logins do work as expected. The CSRF match errors do not show up in the server.log, however. That means that the websockets error is benign and not related. This is clearly about the CSRF matching.

Brian Hill
BCH Technical Services, LLC
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!