single-file-cli icon indicating copy to clipboard operation
single-file-cli copied to clipboard

Issue capturing Github urls with browserless

Open pawanpaudel93 opened this issue 1 year ago • 2 comments

Issue

When the Browserless endpoint is provided as a browserServer option and a GitHub URL eg. https://github.com/pawanpaudel93, single-file does not capture the URL completely, and when opening the captured webpage the webpage seems to load without CSS.

But, It works perfectly when used without browserless though.

pawanpaudel93 avatar Jun 24 '23 03:06 pawanpaudel93

I have the same issue with CSS. and I find that all CSS cdn assets have CORS errors.

image

so after appending access-control-allow-origin: {originHost} and access-control-allow-credentials: true into the response header, the captured webpage can work completely.

marsk6 avatar Nov 27 '23 07:11 marsk6

@marsk6 how are you using the headers withsingle-file-cli and the captured webpage is working completely ? Thanks.

pawanpaudel93 avatar Dec 01 '23 15:12 pawanpaudel93