How to submit form data via Ajax across domains

Each time I have to do this it seems I need to re-research how to do it. So Instead I’m going to keep track of it here.
I credit most of this code to this Treehouse Blog Post

Just add

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

to your php file.

Posted in Uncategorized.

Leave a Reply