AddDefaultCharset UTF-8\r
AddCharset UTF-8 log\r
\r
-\r
-\r
# Static\r
<IfModule mod_expires.c>\r
# ExpiresActive On\r
\r
<IfModule mod_headers.c>\r
Header merge Access-Control-Allow-Origin "*"\r
+ Header append Access-Control-Allow-Methods "POST,GET,OPTIONS,PUT,DELETE"\r
+ Header append Access-Control-Allow-Headers "Content-Type,Accept,x-requested-with"\r
</IfModule>\r
\r
<IfModule mod_deflate.c>\r
exit;
}
- public static function yslSurvey()
+ public function yslSurvey()
{
+
+
global $core;
+ $this->outputXML = false;
+
try {
$c = $core->con->openCursor('ysl_survey');
$c->fluidbook_id = $_POST['Fluidbook_ID'];
$res = '0';
}
ob_end_clean();
+ header('Access-Control-Allow-Origin: *');
+ header('Access-Control-Allow-Methods: POST,GET,OPTIONS,PUT,DELETE');
+ header('Access-Control-Allow-Headers: Content-Type,Accept,x-requested-with');
header('Content-Type: text/plain');
die($res);
}