-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
When gzip compression is enabled, the following code fails if prebid is running inside a friendly iframe (location.origin is 'null').
The main issue here is that "request.url" is an absolute url so the second parameter to URL constructor is irrelevant, should be removed.
Prebid.js/src/adapters/bidderFactory.js
Line 529 in 2e6af5d
| const url = new URL(request.url, window.location.origin); |
Affects version 9 and 10.
From URL documentation:
url parameter:
A string or any other object with a stringifier that represents an absolute URL or a relative reference to a base URL. If url is a relative reference, base is required, and is used to resolve the final URL. If url is an absolute URL, a given base will not be used to create the resulting URL.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done