dgs-framework
dgs-framework copied to clipboard
bug: CORS error when using SSE with webflux
I created a sample project making the use of webflux and disabled CORS and it works for the /graphql endpoint but no for the /subscriptions one.
Expected behavior
It should disabled CORS for all endpoints.
Actual behavior
It does not disabled for subscriptions.
Steps to reproduce
Clone: https://github.com/esfomeado/dgs-cors
Do a request with SSE or fetch:
subscription {
liveCoinsPrice {
name,
price,
time
}
}
Thanks for reporting!
I don't have this issue with my example: https://github.com/Ancient-Dragon/dgs-sse-subscriptions-backend-example
Could you add more info about this incident please? I didn't find a way to reproduce it using this repo. Thanks in advance.