授权报错 重定向问题 #2635
zhangiscode
started this conversation in
General
授权报错 重定向问题
#2635
Replies: 2 comments 27 replies
-
上面这行的返回值本身就是一个 RedirectResponse 了,不需要再用框架的跳转函数包一层。 |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
Beta Was this translation helpful? Give feedback.
23 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
laravel 版本6.20
overtrue/laravel-wechat 版本5.0.11
在执行重定向时,使用:
redirect()->away(
$officialAccount->oauth->scopes($scope)
->redirect($this->getRedirectUrl($request, $enforceHttps))
);
报错:Header may not contain more than a single header, new line detected
换成: return $officialAccount->oauth->scopes($scope)->redirect($request->fullUrl()); 就可以了!麻烦能解答一下吗?
Beta Was this translation helpful? Give feedback.
All reactions