spring-security icon indicating copy to clipboard operation
spring-security copied to clipboard

How To solve about Server sent event with Spring Security ( 6.x.x ) Please Help

Open caolian2003 opened this issue 1 year ago • 1 comments

Describe the bug

A clear and concise description of what the bug is. First of all. i made the code about SSE Without Spring Security . at that time, SSE Code works well !! but since applying Spring security, i see 403 Forrbiden Error...

Do I need a specific setup for SSE connections?

about this issue, i ties to solve this problem below are things that i tried to solve (i`m not use proxy server )

  1. Use Eventsourcepolyfill for Custom Headers
  2. PermitAll for Endpoints in Security
  3. CORS application at front and back end
  4. CSRF disabled

To Reproduce

Expected behavior

Sample

https://github.com/hanwha-be09-4vengers/Yoribogo/tree/feature/main-question/server here is my Repo.

SSE codes are in notification -> controller and service

caolian2003 avatar Oct 20 '24 17:10 caolian2003

i solved this issue. the problem was parsing Error in Front ( token parsing Error in header ) image

caolian2003 avatar Oct 21 '24 04:10 caolian2003