add client side cookie switch to force mock enabling

What are the indent rules for this project?