Code changed for CORS Filter