I tried to generated headers for REST requests, but it didn't work