I'm using the AJAX object to post high scores to a C# based REST service, and the service in question requires an "X-Access-Token" header before it will accept the post. How can I add this header to the built in AJAX object?
Develop games in your browser. Powerful, performant & highly capable.
As per the manual, there is a "Set request header" action that should accomplish what you need. Simply call this before any AJAX post that needs this particular header.
Thanx. I overlooked that when I was reading through it.