How can I send a jwt token (or a header (Authorization to be specific)) in my SSE subscription request (the event source)?
void subscribe (String jwtToken) async {
final eventSource = await html.EventSource("http://127.0.0.1:8080/authenticated/sse_subscription");
eventSource.addEventListener("myEvent", (event) => {print(event)});
}
Either cookies or url query string http://127.0.0.1:8080/authenticated/sse_subscription?jwt=userjwt