Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php api connection

<?php
header('Access-Control-Allow-Origin: *');

header('Content-Type: application/json; charset=UTF-8');

header("Access-Control-Allow-Methods: GET");

header("Access-Control-Max-Age:3600");

header("Access-Control-Allow-Headers:*");
Source by localhost #
 
PREVIOUS NEXT
Tagged: #php #api #connection
ADD COMMENT
Topic
Name
1+2 =