Posts tagged with php

Today I Learned: PHP getallheaders() method and NGINX

PHP has a useful getallheaders() method that returns a request’s HTTP headers as an array. I was using this for my organization’s CMS to check the origin of a request so I could enable CORS for whitelisted origins. It worked... Read more