Follow

後で読むツール、html ダウンロードするときに 画像も読んだろかと、playwright の evaluate で JS でごにょごにょしてるんだが、 ここで CORS...

· · Web · 1 · 0 · 0

playwright の on response で画像リソースゲットして、Buffer から base64 にしたやつを page.evaluate に渡したら、CORS 問題は解決できたぽい。
lazyload 系のスクリプトが入ったときどうなってるかは、調べないといかん。

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!