var settings = {
"async": true,
"crossDomain": true,
"url": 'https://example.com/something.aspx?i='<? echo urlencode($_GET['id']); ?>,
"method": "GET",
"headers": {
"cache-control": "no-cache",
}
}
It doesn't work this way, the concatenation is wrong I think. Tried few ways still doesn't work.
"crossDomain": true,— This almost certainly doesn't do what you think it does. Look it up and decide if you really need it.'https://example.com/something.aspx?i=' + <? echo urlencode($_GET['id']); ?>