Skip to content

Commit b682008

Browse files
committed
use credentials
1 parent 2c759f8 commit b682008

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

modules/dasBidAdapter.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,16 @@ export const spec = {
274274
const baseUrl = getEndpoint(data.ext.network);
275275
const fullUrl = `${baseUrl}?data=${encodeURIComponent(jsonData)}`;
276276

277+
const useCredentials = !(!!data.ext?.adbeta);
278+
277279
// Switch to POST if URL exceeds 8k characters
278280
if (fullUrl.length > 8192) {
279281
return {
280282
method: 'POST',
281283
url: baseUrl,
282284
data: jsonData,
283285
options: {
284-
withCredentials: true,
286+
withCredentials: useCredentials,
285287
crossOrigin: true,
286288
customHeaders: {
287289
'Content-Type': 'text/plain'
@@ -294,7 +296,7 @@ export const spec = {
294296
method: 'GET',
295297
url: fullUrl,
296298
options: {
297-
withCredentials: true,
299+
withCredentials: useCredentials,
298300
crossOrigin: true,
299301
},
300302
};

0 commit comments

Comments
 (0)