adding post on cors and making api more portable and remixable