Even though curl_impersonate mimics a browser, it does not seem to load subrequests along with main request.
Before website implemented cloudflare's WAF, a POST request to https://api-js.datadome.co/js/ that sets a datadome cookie was side loaded with main request (using python's requests) but now it isn't anymore and I get a 403.
Using curl_cffi I do get 200 as a response but datadome cookie is not set for some reason.
In Swift it does get set without even rendering the webpage, since URLSession uses safari's (webkit) tls settings.
Even though curl_impersonate mimics a browser, it does not seem to load subrequests along with main request. Before website implemented cloudflare's WAF, a POST request to https://api-js.datadome.co/js/ that sets a datadome cookie was side loaded with main request (using python's requests) but now it isn't anymore and I get a 403. Using curl_cffi I do get 200 as a response but datadome cookie is not set for some reason. In Swift it does get set without even rendering the webpage, since URLSession uses safari's (webkit) tls settings.