title: 403 No valid crumb was included in the request
body: <p>I am running a Spring Boot Application and trying to test the application using "spring-boot-starter-test". While testing the web services I get a Response with status code 403 -  No valid crumb was included in the request. I am unable to figure out what is missing in the request. I am able to test the service through POSTMAN, however the same request details are failing during Unit Testing.</p>
  
  <pre><code>2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &gt;&gt; "POST /new-game 
  
  HTTP/1.1[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &gt;&gt; "Accept: */*[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &gt;&gt; "Content-Type: application/json; charset=UTF-8[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &gt;&gt; "Content-Length: 40[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &gt;&gt; "Host: localhost:8080[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &gt;&gt; "Connection: Keep-Alive[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &gt;&gt; "User-Agent: Apache-HttpClient/4.5.7 (Java/1.8.0_144)[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &gt;&gt; "Accept-Encoding: gzip,deflate[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &gt;&gt; "[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &gt;&gt; POST /new-game HTTP/1.1
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &gt;&gt; Accept: */*
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &gt;&gt; Content-Type: application/json; charset=UTF-8
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &gt;&gt; Content-Length: 40
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &gt;&gt; Host: localhost:8080
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &gt;&gt; Connection: Keep-Alive
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &gt;&gt; User-Agent: Apache-HttpClient/4.5.7 (Java/1.8.0_144)
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &gt;&gt; Accept-Encoding: gzip,deflate
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &gt;&gt; "{"firstMove":true,"playerName":"Adarsh"}"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &lt;&lt; "HTTP/1.1 403 No valid crumb was included in the request[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &lt;&lt; "Date: Sun, 31 Mar 2019 19:48:53 GMT[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &lt;&lt; "X-Content-Type-Options: nosniff[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &lt;&lt; "Cache-Control: must-revalidate,no-cache,no-store[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &lt;&lt; "Content-Type: text/html;charset=iso-8859-1[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &lt;&lt; "Content-Length: 389[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &lt;&lt; "Server: Jetty(9.4.z-SNAPSHOT)[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.wire -  &lt;&lt; "[\r][\n]"
  2019-03-31 14:48:53 [main] DEBUG o.a.h.i.conn.DefaultClientConnection - Receiving response: HTTP/1.1 403 No valid crumb was included in the request
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &lt;&lt; HTTP/1.1 403 No valid crumb was included in the request
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &lt;&lt; Date: Sun, 31 Mar 2019 19:48:53 GMT
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &lt;&lt; X-Content-Type-Options: nosniff
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &lt;&lt; Cache-Control: must-revalidate,no-cache,no-store
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &lt;&lt; Content-Type: text/html;charset=iso-8859-1
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &lt;&lt; Content-Length: 389
  2019-03-31 14:48:53 [main] DEBUG org.apache.http.headers - &lt;&lt; Server: Jetty(9.4.z-SNAPSHOT)
  </code></pre>