softius / php-cross-domain-proxy

PHP Proxy for Cross Domain Requests
GNU General Public License v3.0
269 stars 141 forks source link

Option for valid request matching via regular expressions #35

Open ghost opened 5 years ago

ghost commented 5 years ago

Hi there,

I have added a define CSAJAX_FILTER_REGEXP to enable matching on the $valid_requests using preg_match instead of a simple string comparison.

I have followed the style of the existing code, as far as I can see.

Let me know what you think.

Cheers, Dom