Thank you for your response, KevinTheJedi. I agree it doesn't make much sense, which is why I fought and searched for an answer before coming here. I must be missing something.
The message is "Valid API key required". I added an API key for the external/WAN ip, one for the server's loopback address, one for the internal IP address of the server hosting OS Ticket and the form, and one for the workstation I'm using for testing. When I submit a Curl request via console on the server using the API key associated with the loopback address, everything comes up roses. When I use any of the API keys in the form, I get that error.
I dug into class.api.php, and noticed that the class is checking $_SERVER['REMOTE_ADDR']
. When I look at phpnfo(), that variable via a page served by the server, using the workstation I'm using to test, that variable has the IP of the workstation I'm using to test. Not the server, nor the server's loopback address. It's very possible and most probable that I'm overlooking an important detail in terms of $_SERVER variable assignments, I just can't see it.
Side note: It may be helpful to know, and quite possibly will shed light on what I'm missing, that both server and the test workstation are internal to this organization. We use proxied cloudflare for DNS, and the URL is only accessible internally.
Thank you kindly in advance for your help!
Best,
Mike
Edit: Spelling, grammar, clarity.