Can we add custom headers before making EventSource Connection? I've done some research and found we can not pass headers directly to EventSource and it's not supported. An alternative is to pass headers via cookies or something. But I couldn't any sample supporting this too.
It would be a great help if you can verify which is the best suitable method or share some code where we can pass headers before making a connection to the request.
I am all new to this Java Spring Boot and SEE. Please let me know if you need any other data from my end.