Fixed impropper handling of common requests if cors enabled