Closed 5s2j0f6c8k closed 6 years ago
Get("/api/current_login") ~> Route.seal(Example.routes) ~> check { status shouldBe StatusCodes.Forbidden }
Get("/api/current_login") ~> addHeader(Cookie(cookieName, csrfCookie.cookie.value)) ~> addHeader(sessionConfig.csrfSubmittedName, csrfCookie.cookie.value) ~> addHeader(Cookie(sessionConfig.sessionCookieConfig.name, sessionData.cookie.value))~> Route.seal(Example.routes) ~> check { status shouldBe StatusCodes.Forbidden }
Thanks for the PR, however it seems there's a compilation error?
hello: I just want to test the Example, Two problems were found during the test.