jenssegers / php-proxy

A PHP proxy script with https and post support
https://jenssegers.com
932 stars 266 forks source link

Skip Ajax Requests #95

Open SalvoLunar opened 2 years ago

SalvoLunar commented 2 years ago

Hi,

I use your proxy to parse a specific request and then add the X-Frame-Options header to the response page, which contains a form.

The problem I'm having is that when I try to submit tha form via Ajax to the same URL the proxy parses the request again removing the POST paramenters, or maybe it doesn't recognise that that's a ajax request at all. This causes loads to errors to appear in the console.

Is there a way to solve this problem?

Thanks, Salvo