Move cors things to Main