diff --git a/libretroshare/src/jsonapi/jsonapi.cpp b/libretroshare/src/jsonapi/jsonapi.cpp index 70443bf5f..3888117a5 100644 --- a/libretroshare/src/jsonapi/jsonapi.cpp +++ b/libretroshare/src/jsonapi/jsonapi.cpp @@ -417,7 +417,7 @@ void JsonApiServer::registerHandler( if(!rsLoginHelper->isLoggedIn()) { - session->close(rb::CONFLICT); + session->close(rb::CONFLICT, corsOptionsHeaders); return; } @@ -429,7 +429,7 @@ void JsonApiServer::registerHandler( if(authToken != "Basic") { - session->close(rb::UNAUTHORIZED); + session->close(rb::UNAUTHORIZED, corsOptionsHeaders); return; } @@ -437,7 +437,7 @@ void JsonApiServer::registerHandler( authToken = decodeToken(authToken); if(isAuthTokenValid(authToken)) callback(session); - else session->close(rb::UNAUTHORIZED); + else session->close(rb::UNAUTHORIZED, corsOptionsHeaders); } ); mResources.push_back(resource); diff --git a/retroshare-gui/src/gui/connect/ConnectFriendWizard.ui b/retroshare-gui/src/gui/connect/ConnectFriendWizard.ui index 9cbd53ca0..e80105688 100644 --- a/retroshare-gui/src/gui/connect/ConnectFriendWizard.ui +++ b/retroshare-gui/src/gui/connect/ConnectFriendWizard.ui @@ -6,8 +6,8 @@ 0 0 - 1139 - 1171 + 600 + 400