I'm trying to write a simple script where someone can post to a URL via CURL or any other language and post a password string and it returns JSON data
I'm testing via this site and I'm getting the below error. What can I do
https://resttesttest.com/
Oh no! Javascript returned an HTTP 0 error. One common reason this might happen is that you requested a cross-domain resource from a server that did not include the appropriate CORS headers in the response. Better open up your Firebug...
I have this on my page
header('Access-Control-Allow-Origin: https://resttesttest.com//');
header('Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE');
header('Access-Control-Allow-Headers: Content-Type, x-requested-with');
header('Access-Control-Max-Age: 86400');
header('Content-type: application/json');