Skip to content

Commit a8a8a9f

Browse files
committed
send additional params to allow iframes in prerender
1 parent 4291102 commit a8a8a9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/utils.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ export function prepareRequestOptions(request_options, options) {
9898
if (proxy.prerender && CONFIG.PRERENDER_URL && !options?.prevent_prerender) {
9999
request_options.uri = CONFIG.PRERENDER_URL + encodeURIComponent(uri);
100100

101+
if (proxy.prerender === 'iframes') {
102+
request_options.uri += '&allow=iframes';
103+
}
104+
101105
} else if (proxy.proxy && CONFIG.PROXY_URL) {
102106
request_options.uri = /{url}/.test(CONFIG.PROXY_URL)
103107
? CONFIG.PROXY_URL.replace(/{url}/, encodeURIComponent(uri))

0 commit comments

Comments
 (0)