RyanJarv / cdn-proxy

Bypass CDN and WAF restrictions using CDN re-fronting.
https://blog.apnic.net/2022/05/19/bypassing-cdn-wafs-with-alternate-domain-routing/
240 stars 26 forks source link

Setup fails on IndexError #4

Open RyanJarv opened 2 years ago

RyanJarv commented 2 years ago

Currently the PyPi version is not the latest, to fix this try installing/updating directly from the GitHub repo:

pip install -U git+https://github.com/RyanJarv/cdn-proxy.git@main
RyanJarv commented 2 years ago

This was fixed in https://github.com/RyanJarv/cdn-proxy/commit/f033d24224ef1fb65075bd80f179cbcfdbcf2663.

You can likely work around it by creating an arbitrary custom cloudfront origin request policy as well. The issue seems to be the CloudFront API doesn't return an Items key in the response when there's no origin request policies in the account.