Open mwbelt opened 4 years ago
Anybody else experiencing this? It's crazy frustrating.
The execute
api is the most powerful one, you can set custom headers with lua scripts.
splash:on_request(function (request)
request:set_header("X-Some-Header", "Some-Value")
end)
I can't seem to find a way to send custom http headers to the 'execute' or 'run' endpoint. I've seen several examples of how to properly send them to the 'render.html' endpoint (https://github.com/scrapinghub/splash/issues/628 and https://github.com/scrapinghub/splash/issues/775) but none of those options work for execute. Can anybody give me a solid example?