boilerplate for options request and cors, post for votchange