I have configured a Azure Load Balancer with the session persistence (Client IP and protocol), where the origin server responds always the calls from the website. My application worked perfectly at this point. When a user is authenticated the server will recognize the person, and respond with personalized information because it has all the information of the customer all the time in the same server.
The problem happens when I configured the Cache from Cloudflare, now different servers are responding the ajax call and because the other server doesn’t know that the user has been authenticated, the response from the ajax call is not the correct one. The actual information is for unrecognized clients, when the expected is personalized content.
Is there a configuration that I have to do in cloudflare, to respect the session persistence.