Skip to content

Commit

Permalink
Read secure fields to send requests (prebid#2078)
Browse files Browse the repository at this point in the history
On http page, a video request will then raise an error as the non secure creative will be called from the player which is an https iframe so raise an error.
  • Loading branch information
Antoine Jacquemin (Rubicon) authored and dluxemburg committed Jul 17, 2018
1 parent 08131a4 commit 6104216
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/rubiconBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ export const spec = {
if (bidRequest.mediaType === 'video') {
let params = bidRequest.params;
let size = parseSizes(bidRequest);
let page_rf = !params.referrer ? utils.getTopWindowUrl() : params.referrer;

let data = {
page_url: !params.referrer ? utils.getTopWindowUrl() : params.referrer,
page_url: params.secure ? page_rf.replace(/^http:/i, 'https:') : page_rf,
resolution: _getScreenResolution(),
account_id: params.accountId,
integration: INTEGRATION,
Expand Down

0 comments on commit 6104216

Please sign in to comment.