Fix typo with cookies and session data
Add user_agent in controller date, add log when origin is rejected