Cleaned up Cross-Origin Filter and made it anonymous inner class