Found solution to manage right both browser and rest cleanly