- <?php
- // proxy.php
- // Allow requests from your domain
- header("Access-Control-Allow-Origin: https://modulosdesign.com.au");
- header("Content-Type: application/json");
- // Get the target URL from the query parameters
- $url = $_GET['url'];
- // Make the request to the external server
- $response = file_get_contents($url);
- // Output the response
- echo $response;
- ?>
|