start to remove 'rack-policy' gem
adjusted cookie policy checker method to not crash the website