For me, it was an extra character in the cookie (ended with newline character) that caused HTTP 415 error. Once removed the new line character, it worked.