Skip to content

Commit cede41e

Browse files
committed
Fix non executable response with strict MIME checking in Chrome
1 parent a6dabad commit cede41e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Controller/MoxiemanagerController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public function api()
4444
} catch (Exception $e) {
4545
\MOXMAN_Exception::printException($e);
4646
}
47+
$this->response->type('application/javascript');
48+
4749
return $this->render(false, false);
4850
}
4951
}

0 commit comments

Comments
 (0)