diff --git a/html/modules/custom/ghi_content/src/RemoteSource/RemoteSourceBaseHpcContentModule.php b/html/modules/custom/ghi_content/src/RemoteSource/RemoteSourceBaseHpcContentModule.php index 5fccc5df2..6edf54193 100644 --- a/html/modules/custom/ghi_content/src/RemoteSource/RemoteSourceBaseHpcContentModule.php +++ b/html/modules/custom/ghi_content/src/RemoteSource/RemoteSourceBaseHpcContentModule.php @@ -208,7 +208,8 @@ public function searchArticlesByTitle($title) { public function query($payload) { $body = '{"query": "query ' . str_replace("\n", " ", addslashes(trim($payload))) . '"}'; $headers = [ - 'Content-type: application/json', + 'Content-type' => 'application/json', + 'Apollo-Require-Preflight' => 'true', ]; if ($basic_auth = $this->getRemoteBasicAuth()) { $headers['Authorization'] = 'Basic ' . base64_encode($basic_auth['user'] . ':' . $basic_auth['pass']);