proxy.php 360 B

12345678910111213141516
  1. <?php
  2. // proxy.php
  3. // Allow requests from your domain
  4. header("Access-Control-Allow-Origin: https://modulosdesign.com.au");
  5. header("Content-Type: application/json");
  6. // Get the target URL from the query parameters
  7. $url = $_GET['url'];
  8. // Make the request to the external server
  9. $response = file_get_contents($url);
  10. // Output the response
  11. echo $response;
  12. ?>