-
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
Read secure fields to send requests #2078
Conversation
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.
@AntoineJac - this PR might need to be rebased to pass CI. See #2042 |
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.
One small change. Also you have some linting errors that are failing the build. You can run the linter with the gulp lint
command on the command line.
modules/rubiconBidAdapter.js
Outdated
let data = { | ||
page_url: !params.referrer ? utils.getTopWindowUrl() : params.referrer, | ||
page_url: bid.param.secure ? page_rf.replace(/http:/i, "https:") : page_rf, |
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.
should anchor this regex to beginning just in-case.
.replace(/^http:/
Thanks Rich,
Just update it, and pass CI
Cheers,
Antoine Jacquemin Senior Solution Engineer - International
M: +65 86 719 728 | *Linkedin:* Antoine Jacquemin
137 AMOY STREET, #3-04A, FAR EAST SQUARE, SINGAPORE, 049965
RUBICONPROJECT.COM <http://www.rubiconproject.com> | JOIN US
<http://rubiconproject.com/join-us/> | FOLLOW US
<http://twitter.com/rubiconproject> <http://www.chango.com/about/careers/>
…On Tue, Jan 30, 2018 at 2:28 AM, Rich Snapp ***@***.***> wrote:
***@***.**** requested changes on this pull request.
One small change. Also you have some linting errors that are failing the
build. You can run the linter with the gulp lint command on the command
line.
------------------------------
In modules/rubiconBidAdapter.js
<#2078 (comment)>:
> let data = {
- page_url: !params.referrer ? utils.getTopWindowUrl() : params.referrer,
+ page_url: bid.param.secure ? page_rf.replace(/http:/i, "https:") : page_rf,
should anchor this regex to beginning just in-case.
.replace(/^http:/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2078 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AV9TzOQrV6BzHy_s1kjUwdINZc1seXzqks5tPg24gaJpZM4RwTM0>
.
|
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.
LGTM
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.
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.
Type of change
Description of change
Be sure to test the integration with your adserver using the Hello World sample page.
For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:
Other information