cors for constant and file handlers