Searching for Request
Search
Search Code
No 'Access-Control-Allow-Origin' header is present on the requested resource.
add this to your php to allow requests from any source Access-Control-Allow-Origin php header
youtube search api request function
This function requests a search from the youtube search api, and searches the text in the snippet for the seearch string. You can get your own API key for this from the google developers console. They..
fix for wordpress requesting ftp login details installing plugins
add this to wp config define('FS_METHOD', 'direct');
json jquery ajax request
get json data with jquery using getJSON
using custom request headers array with curl
this function passes in an array with custom request headers to curl, good if you need to pass in some headers to request an api url and give it an auth key or something like that. Also added to the a..