TP5关闭debug模式,线上不显示验证码解决
如果报错Notice: ob_end_clean(): failed to delete buffer. No buffer to delete…
解决方案:
在/vendor/topthink/think-captcha/src/CaptchaController.php文件中加上一行:if(ob_get_contents()) ob_clean();
如果报错Notice: ob_end_clean(): failed to delete buffer. No buffer to delete…
解决方案:
在/vendor/topthink/think-captcha/src/CaptchaController.php文件中加上一行:if(ob_get_contents()) ob_clean();
TP5: /*防止跨域*/ header('Access-Control-Allow-Origin: '.$_SERVER['HTTP_ORIGIN']); header('Acce