Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upVia error while trying to annotate a page on CloudFlare #2909
Comments
lenazun
added
the
P2: Urgent
label
Feb 3, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nickstenning
Feb 5, 2016
Contributor
This is, as suggested by the document above, caused by the CloudFlare edge detecting and aborting what they think is an infinite loop in the routing.
In this case it isn't, and we convince them of that by stripping the CF-specific headers from the request before we pass it through via. Adding the following to the via nginx configuration has fixed this issue:
more_clear_input_headers CF-Connecting-IP;
more_clear_input_headers CF-Ray;
more_clear_input_headers CF-Visitor;
more_clear_input_headers CF-Ipcountry;
|
This is, as suggested by the document above, caused by the CloudFlare edge detecting and aborting what they think is an infinite loop in the routing. In this case it isn't, and we convince them of that by stripping the CF-specific headers from the request before we pass it through via. Adding the following to the via nginx configuration has fixed this issue:
|
nickstenning
closed this
Feb 5, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Awesome! |
lenazun commentedFeb 3, 2016
Steps to repro:
Go to
https://via.hypothes.is/cafe.com
https://via.hypothes.is/https://medium.com/@nayafia/we-re-in-a-brave-new-post-open-source-world-56ef46d152a3
Expected: via loads with the page
Actual: You will get an error message: