-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
OpenX Adapter: Correctly gets the page domain for cross-domain iframes #1027
Conversation
src/adapters/openx.js
Outdated
@@ -196,7 +196,8 @@ const OpenxAdapter = function OpenxAdapter() { | |||
function callBids(params) { | |||
let isIfr, | |||
bids = params.bids || [], | |||
currentURL = window.location.href && encodeURIComponent(window.location.href); | |||
currentURL = (parent !== window) ? document.referrer : window.location.href; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change to window.parent
. Thanks
@lntho |
Apologies, I have been pretty busy with other things and did not see this until yesterday. I can push out a fix ASAP |
No worries thanks. |
@mkendall07 Done, thanks for the review and please let me know if there are any more things you see! |
…built * 'master' of https://github.com/prebid/Prebid.js: Add GourmetAds AppNexus Alias (prebid#1057) fix issue calling `requestBids();` (prebid#1058) explicit win url response format as pixel (prebid#1001) OpenX Adapter: Correctly gets the page domain for cross-domain iframes (prebid#1027) better http/s support (prebid#1010) Add a new generated field transactionId to each adunits. (prebid#1040) Update readme (prebid#1053) PulsePoint Lite adapter (prebid#1016) Add new adapter ServerBid (by Adzerk) (prebid#1024) Fix Mantis tests in negative timezone (prebid#1049) Add deal id handling (prebid#1044) sanitize bidderRequest to rubicon adapter to ensure accountId is sent (prebid#1030) Bidfluence Adapter (prebid#1023) Update uglify-js version (prebid#1041) Add dev dependencies. hb_adid should be uppercase in all cases (prebid#1037) Add TapSense Header Bidding Adapter and tests (prebid#1004) iOS Referrer fix (prebid#996) Change identification of JavaScript user matching (prebid#1022) Fixed mixed tabs/spaces in wideorbit adapter (prebid#1031)
Type of change
Description of change
This change fixes the way page domain is retrieve in cases of cross-domain iframes