$.ajax({
type: "POST",
url: 'ip:5000/buy',
data: {
"name1": "data1",
"nameArray": [array],
"name2": "data2"
},
dataType: 'json'
});
Access-Control-Allow-Headers "Content-Type";
Access-Control-Allow-Origin 'EXAMPLE.ORG';
Access-Control-Allow-Credentials "true";
myorigin (default: $myhostname)
The domain name that locally-posted mail appears to come from, and that locally posted mail is delivered to. The default, $myhostname, is adequate for small sites. If you run a domain with multiple machines, you should (1) change this to $mydomain and (2) set up a domain-wide alias database that aliases each user to user@that.users.mailhost.
myhostname (default: see "postconf -d" output)
The internet hostname of this mail system. The default is to use the fully-qualified domain name (FQDN) from gethostname(), or to use the non-FQDN result from gethostname() and append ".$mydomain". $myhostname is used as a default value for many other configuration parameters.
int preg_match_all ( string $pattern , string $subject [, array &$matches [, int $flags = PREG_PATTERN_ORDER [, int $offset = 0 ]]] )
Ищет в строке subject все совпадения с шаблоном pattern и помещает результат в массив matches в порядке, определяемом комбинацией флагов flags.