在我的ajax调用中,responseHeader('Location')FF始终为空.有谁能够帮我?顺便说一下它是一个CORS.
$.ajax({
url: VIDEOS_UPLOAD_SERVICE_URL,
method: 'POST',
contentType: 'application/json',
headers: {
Authorization: 'Bearer ' + accessToken,
'x-upload-content-length': file.size,
'x-upload-content-type': file.type
},
data: JSON.stringify(metadata)
}).done(function(data, textStatus, jqXHR) {
resumableUpload({
url: jqXHR.getResponseHeader('Location'),
file: file,
start: 0
});
});
Run Code Online (Sandbox Code Playgroud) 在我的数据库中,我保存了密码
password_hash($user->getPassword(), PASSWORD_BCRYPT);
Run Code Online (Sandbox Code Playgroud)
在登录表单中,用户输入此密码,我将密码编码为bcrypt字符串,并将加密密码(因为我没有SSL)提交给服务器.
所以我的问题是可以比较用bcrypt生成的两个哈希值吗?