add cors header and quantity sold