I have CloudFlare enabled on my website. I wrote a simple REST API to retrieve some data from my website's database. When doing a GET curl request, I can't retrieve the Authorization token. It only doesn't work when CloudFlare is enabled.
This is part of the PHP curl request which is a simple header.
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer $api_key",
"Content-Type: application/json"
),
Why is CloudFlare blocking me from retrieving the Authorization token and how do I fix it?