Finally figured out how to get CORS to work.