Configuring different CORS policy

How do we configure a different CORS policy for different origins?

For example:
origin 1 will have access to all requests
origin 2 will have access to PUT, GET
origin 3 will have access only to GET
This configuration has to be applicable at the global level.

Is there a way to do it through CORS plugin or can it be configured through custom nginx file only?