What is the use of has_js cookie?
The has_js cookie has been used by the Batch API. Without this cookie, or when JS is disabled in the client browser, the batch API will give you a WSOD.

See $_COOKIE['has_js'] must die.

If your service endpoint is dealing with the Batch API internally, then you will have this problem.