Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

enable cors cakephp

public function init_result() {

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

	$this->result = array(
		'status' => false,
		'message' => __("please_provide_information"),
		'params' => array(),
	);
}
 
PREVIOUS NEXT
Tagged: #enable #cors #cakephp
ADD COMMENT
Topic
Name
1+7 =