Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect XDomainUsage.send invocation #1941

Closed
ckbo3hrk opened this issue Dec 8, 2017 · 0 comments
Closed

Incorrect XDomainUsage.send invocation #1941

ckbo3hrk opened this issue Dec 8, 2017 · 0 comments

Comments

@ckbo3hrk
Copy link
Contributor

ckbo3hrk commented Dec 8, 2017

Type of issue

Bug

Description

It seems that XDomainRequest.send is sensitive to incorrect input parameter value:

x.send(method === 'POST' && data);

... as it fails when method = 'GET'

Steps to reproduce

  1. Open IE9
  2. Execute:
var x = new window.XDomainRequest();
var method = 'GET';
var data = undefined;
var url = 'http://cpm.metaadserving.com/rtbg?zone=30164&ad_type=rtb&v=1.0&r=%7B%22id%22%3A%223a0006d5423757%22%2C%22imp%22%3A%5B%7B%22id%22%3A%2243b4631d9943f3%22%2C%22tagid%22%3A%22container-1%22%2C%22banner%22%3A%7B%22w%22%3A300%2C%22h%22%3A250%7D%7D%5D%2C%22site%22%3A%7B%22domain%22%3A%22prebidjs.com%22%2C%22page%22%3A%22http%3A%2F%2Fprebidjs.com%2Fa.html%22%7D%2C%22at%22%3A1%2C%22device%22%3A%7B%22ip%22%3A%22caller%22%2C%22ua%22%3A%22caller%22%7D%7D&';
x.open(method, url)
x.send(method === 'POST' && data);

Test page

https://jsfiddle.net/ckbo3hrk/c3ag20s3/

Expected results

Network request to cpm.metaadserving.com/rtbg is issued

Actual results

Exception is thrown

Platform details

IE9 emulation in IE11, PB version 1.0.0,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants