-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
requireSession breaks CORS #41
Comments
Do you mean the It would be helpful if you could post a code snippet demonstrating the problem. |
Yes, sorry. This is how I set it up. Adding requiredSession(oneOff,usingHeaders) effectively nullified my CORS setting. If I get the headers manually myself, CORS works as expected. I'm using val sessionConfig = SessionConfig.default(SessionUtil.randomServerSecret())
implicit val sessionManager = new SessionManager[String](sessionConfig)
implicit val refreshTokenStorage = new InMemoryRefreshTokenStorage[String] {
def log(msg: String) = System.out.println(msg)
}
def sessionSet(session: String) = setSession(oneOff, usingHeaders, session)
val sessionRequired = requiredSession(oneOff, usingHeaders) |
Hm, well in the |
My CORS configuration works perfectly until I use requireSession. I have tried many different configurations with no success in getting both CORS and Sessions working together. I'm guessing that requireSession overwrites headers that I set for CORS, but I am uncertain of this. Any suggestions?
The text was updated successfully, but these errors were encountered: