spring-projects / spring-security

Spring Security
http://spring.io/projects/spring-security
Apache License 2.0
8.78k stars 5.89k forks source link

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

Open caolian2003 opened 2 days ago

caolian2003 commented 2 days ago

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 commented 2 days ago

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