CORS error persists in oAuth even after setting header

How is your code different?