-
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
Request options updated to send session cookie and avoid CORS preflight #2840
Conversation
set withCredentials option to ensure cookies are sent with bid requests
modules/playgroundxyzBidAdapter.js
Outdated
@@ -44,8 +44,8 @@ export const spec = { | |||
}; | |||
|
|||
const options = { | |||
contentType: 'application/json', | |||
withCredentials: false | |||
contentType: 'text/plain', |
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.
these are the default options in bidderFactory for a POST request. You can just remove the options
property.
See: https://github.com/prebid/Prebid.js/blob/master/src/adapters/bidderFactory.js#L260
Thanks @mkendall07 PR updated with options removed. Also added our usersync pixel - not sure if you prefer separate PRs for multiple small / unrelated changes? |
@mkendall07 just checking if there's anything else we need to action here? |
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
…ht (prebid#2840) * use content-type text/plain to avoid preflight CORS request set withCredentials option to ensure cookies are sent with bid requests * removed unnecessary options * reverted package-lock.json changes * added pxyz user sync pixel
…ht (prebid#2840) * use content-type text/plain to avoid preflight CORS request set withCredentials option to ensure cookies are sent with bid requests * removed unnecessary options * reverted package-lock.json changes * added pxyz user sync pixel
…ht (prebid#2840) * use content-type text/plain to avoid preflight CORS request set withCredentials option to ensure cookies are sent with bid requests * removed unnecessary options * reverted package-lock.json changes * added pxyz user sync pixel
…ht (prebid#2840) * use content-type text/plain to avoid preflight CORS request set withCredentials option to ensure cookies are sent with bid requests * removed unnecessary options * reverted package-lock.json changes * added pxyz user sync pixel
…ht (prebid#2840) * use content-type text/plain to avoid preflight CORS request set withCredentials option to ensure cookies are sent with bid requests * removed unnecessary options * reverted package-lock.json changes * added pxyz user sync pixel
Type of change
Description of change
withCredentials
option set to ensure cookies are sent with bid requests to our endpointcontentType
set totext/plain
to avoid the CORS preflight requestBe 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