Posts

Showing posts from November 27, 2018

x10webhosting Call to undefined method mysqli_stmt::get_result()

Image
up vote 0 down vote favorite This is my php block that has the get_result() public function storeUser($first_name,$middle_name,$last_name,$birthdate,$age,$monthly_salary,$tax,$email,$password) { $uuid = uniqid('', true); $hash = $this->hashSSHA($password); $encrypted_password = $hash["encrypted"]; // encrypted password $salt = $hash["salt"]; // salt $stmt = $this->conn->prepare("INSERT INTO users(unique_id, first_name, middle_name, last_name, birthdate,age, monthly_salary,tax, email, encrypted_password, salt, created_at) VALUES(?, ?, ?, ?, ?,?,?,?,?,?,?,NOW())"); $stmt->bind_param("sssssssssss", $uuid, $first_name,$middle_name,$last_name,$birthdate,$age, $monthly_salary,$tax, $email, $encrypted_password, $salt); $result = $stmt->e

violates the following Content Security Policy directive

Image
up vote 0 down vote favorite When I Upload a Image into my web APP, it showing below error Refused to load the image ' <URL> because it violates the following Content Security Policy directive: "default-src * data: 'unsafe-eval' 'unsafe-inline'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback. I try to solve this error by using following code <meta http-equiv="Content-Security-Policy" content="default-src *; img-src * 'self' data: https:; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src 'self' 'unsafe-inline' *"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> but it is