make setCORS fluid