The response that most contributed to anti-foreign sentiment in China during the Age of Imperialism is:
Foreigners ignored Chinese laws.
This disregard for local laws and customs by foreign powers was a significant source of resentment among the Chinese population, leading to increased anti-foreign sentiment during that period.