Add CORS header to JSON response - refs #7338

1.9.x
Angel Fernando Quiroz Campos 10 years ago
parent b852f7402c
commit 7bdf7db242
  1. 1
      webservices/rest.php

@ -77,4 +77,5 @@ switch ($action) {
/* View */
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');
echo json_encode($json);

Loading…
Cancel
Save