mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-15 17:19:10 +00:00
chore: temporarily loosen CORS, add OAuth state info for backend bouncing
This commit is contained in:
parent
ed82a67594
commit
6edfe7455f
8 changed files with 72 additions and 9 deletions
|
@ -11,9 +11,10 @@ const Login = () => {
|
|||
|
||||
React.useEffect(() => {
|
||||
const url = new URL(window.location.href);
|
||||
const callbackHost = `${url.protocol}://${url.host}`;
|
||||
const redirectServerID = url.searchParams.get('r');
|
||||
if (!redirectServerID) {
|
||||
window.location.href = `${apiUrl}/login-bounce`;
|
||||
window.location.href = `${apiUrl}/login-bounce?cbh=${callbackHost}`;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue