Oops. Forgot jquery!
Added CORS request header.