APISECURITY
This commit is contained in:
parent
5b55ab17a7
commit
020e890dae
@ -109,7 +109,7 @@ class _LoginWidgetState extends State<LoginWidget> {
|
|||||||
_isLoading = true;
|
_isLoading = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
const String url = '$apiUrl/auth/login';
|
const String url = '$apiUrl/api/auth/login';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = await http.post(
|
final response = await http.post(
|
||||||
|
|||||||
@ -34,8 +34,8 @@ class _MyAppState extends State<MyApp> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
// SemanticsBinding.instance
|
SemanticsBinding.instance
|
||||||
// .ensureSemantics(); // -only for testing uncomment, Otherwise Email Template wont allow to type
|
.ensureSemantics(); // -only for testing uncomment, Otherwise Email Template wont allow to type
|
||||||
if (kIsWeb) {
|
if (kIsWeb) {
|
||||||
final uri = Uri.parse(html.window.location.href);
|
final uri = Uri.parse(html.window.location.href);
|
||||||
print("URI - $uri");
|
print("URI - $uri");
|
||||||
|
|||||||
@ -726,7 +726,7 @@ class ApiService {
|
|||||||
headers: {
|
headers: {
|
||||||
'Authorization': 'Bearer $token',
|
'Authorization': 'Bearer $token',
|
||||||
'Content-Type': 'application/json',
|
'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: {
|
headers: {
|
||||||
'Authorization': 'Bearer $token',
|
'Authorization': 'Bearer $token',
|
||||||
'Content-Type': 'application/json',
|
'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: {
|
headers: {
|
||||||
'Authorization': 'Bearer $token',
|
'Authorization': 'Bearer $token',
|
||||||
'Content-Type': 'application/json',
|
'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: {
|
headers: {
|
||||||
'Authorization': 'Bearer $token',
|
'Authorization': 'Bearer $token',
|
||||||
'Content-Type': 'application/json',
|
'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: {
|
headers: {
|
||||||
'Authorization': 'Bearer $token',
|
'Authorization': 'Bearer $token',
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
// 'app-signature': 'ts-traveltool-2025-signature-123456',
|
'app-signature': 'ts-traveltool-2025-signature-123456',
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user