APISECURITY

This commit is contained in:
venbaittech 2025-08-21 14:57:52 +05:30
parent 5b55ab17a7
commit 020e890dae
3 changed files with 8 additions and 8 deletions

View File

@ -109,7 +109,7 @@ class _LoginWidgetState extends State<LoginWidget> {
_isLoading = true;
});
const String url = '$apiUrl/auth/login';
const String url = '$apiUrl/api/auth/login';
try {
final response = await http.post(

View File

@ -34,8 +34,8 @@ class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
// SemanticsBinding.instance
// .ensureSemantics(); // -only for testing uncomment, Otherwise Email Template wont allow to type
SemanticsBinding.instance
.ensureSemantics(); // -only for testing uncomment, Otherwise Email Template wont allow to type
if (kIsWeb) {
final uri = Uri.parse(html.window.location.href);
print("URI - $uri");

View File

@ -726,7 +726,7 @@ class ApiService {
headers: {
'Authorization': 'Bearer $token',
'Content-Type': 'application/json',
// 'app-signature': 'ts-traveltool-2025-signature-123456',
'app-signature': 'ts-traveltool-2025-signature-123456',
},
);
@ -764,7 +764,7 @@ class ApiService {
headers: {
'Authorization': 'Bearer $token',
'Content-Type': 'application/json',
// 'app-signature': 'ts-traveltool-2025-signature-123456',
'app-signature': 'ts-traveltool-2025-signature-123456',
},
);
@ -804,7 +804,7 @@ class ApiService {
headers: {
'Authorization': 'Bearer $token',
'Content-Type': 'application/json',
// 'app-signature': 'ts-traveltool-2025-signature-123456',
'app-signature': 'ts-traveltool-2025-signature-123456',
},
);
@ -869,7 +869,7 @@ class ApiService {
headers: {
'Authorization': 'Bearer $token',
'Content-Type': 'application/json',
// 'app-signature': 'ts-traveltool-2025-signature-123456',
'app-signature': 'ts-traveltool-2025-signature-123456',
},
);
@ -935,7 +935,7 @@ class ApiService {
headers: {
'Authorization': 'Bearer $token',
'Content-Type': 'application/json',
// 'app-signature': 'ts-traveltool-2025-signature-123456',
'app-signature': 'ts-traveltool-2025-signature-123456',
},
);