API: Add User-Agent to CORS allow list
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 13 Dec 2018 17:05:33 +0000 (12:05 -0500)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 19 Dec 2018 20:11:17 +0000 (12:11 -0800)
commiteb51c6364e9c12ace0733b8f1d7c0cf474e8b124
treec6ce55a8f53650c89100b4ab1a0fb5f70bf7ac13
parent2d5af67fb693387abcd62fbd173a69680f725136
API: Add User-Agent to CORS allow list

An updated spec[1] removed the User-Agent header from the list of forbidden
headers for XHR, so some clients are now requesting to use it.

[1] https://github.com/whatwg/fetch/commit/dab09b0c483

Change-Id: I43d42c3c3a6510721ff7e5fc406db797bf08ffae
includes/api/ApiMain.php