API versioning method

At the beginning both v1. and v2. will be on the same server. But I am about to learn about CORS. Will this be a way to manage multi-facing by some sort of key?