v1.0.22
This commit is contained in:
parent
3c212320e5
commit
953753196b
@ -1,5 +1,9 @@
|
|||||||
Workout Test and Diet 4 You Common Util Functions
|
Workout Test and Diet 4 You Common Util Functions
|
||||||
|
|
||||||
|
### Version 1.0.22
|
||||||
|
|
||||||
|
webapi CORS: only diet4you domains, plugins update
|
||||||
|
|
||||||
### Version 1.0.21
|
### Version 1.0.21
|
||||||
|
|
||||||
webapi CORS: test all domains
|
webapi CORS: test all domains
|
||||||
|
@ -27,7 +27,7 @@ class APIWebClient with Common, Logging {
|
|||||||
final body = jsonEncode(<String, String>{'username': email, 'password': password});
|
final body = jsonEncode(<String, String>{'username': email, 'password': password});
|
||||||
var uri = Uri.parse(url);
|
var uri = Uri.parse(url);
|
||||||
var result = await http.post(uri, body: body, headers: {
|
var result = await http.post(uri, body: body, headers: {
|
||||||
"Access-Control-Allow-Origin": 'https://*.diet4you.eu, https://*.diet4you.hu',
|
"Access-Control-Allow-Origin": 'https://*.diet4you.eu, https://*.diet4you.hu, http://localhost',
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Authorization": "1",
|
"Authorization": "1",
|
||||||
});
|
});
|
||||||
@ -65,8 +65,10 @@ class APIWebClient with Common, Logging {
|
|||||||
}
|
}
|
||||||
var uri = Uri.parse(url);
|
var uri = Uri.parse(url);
|
||||||
var result = await http.post(uri, body: body, headers: {
|
var result = await http.post(uri, body: body, headers: {
|
||||||
//"Access-Control-Allow-Origin": 'https://*.diet4you.eu, https://*.diet4you.hu',
|
"Access-Control-Allow-Origin": 'https://*.diet4you.eu, https://*.diet4you.hu, http://localhost',
|
||||||
"Access-Control-Allow-Origin": '*',
|
"Access-Control-Allow-Headers": "Origin,Content-Type,Authorization,locale",
|
||||||
|
"Access-Control-Allow-Credentials": 'true', // Required for cookies, authorization headers with HTTPS
|
||||||
|
"Access-Control-Allow-Methods": "POST, GET, OPTIONS",
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Authorization": 'Bearer $authToken',
|
"Authorization": 'Bearer $authToken',
|
||||||
});
|
});
|
||||||
@ -100,8 +102,10 @@ class APIWebClient with Common, Logging {
|
|||||||
var uri = Uri.parse(url);
|
var uri = Uri.parse(url);
|
||||||
var result = await http.get(uri, headers: {
|
var result = await http.get(uri, headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
//"Access-Control-Allow-Origin": 'https://*.diet4you.eu, https://*.diet4you.hu',
|
"Access-Control-Allow-Origin": 'https://*.diet4you.eu, https://*.diet4you.hu, http://localhost',
|
||||||
"Access-Control-Allow-Origin": '*',
|
"Access-Control-Allow-Headers": "Origin,Content-Type,Authorization,locale",
|
||||||
|
"Access-Control-Allow-Credentials": 'true', // Required for cookies, authorization headers with HTTPS
|
||||||
|
"Access-Control-Allow-Methods": "POST, GET, OPTIONS",
|
||||||
"Authorization": 'Bearer $authToken',
|
"Authorization": 'Bearer $authToken',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
18
pubspec.yaml
18
pubspec.yaml
@ -1,6 +1,6 @@
|
|||||||
name: workouttest_util
|
name: workouttest_util
|
||||||
description: Workout Test app and web functions.
|
description: Workout Test app and web functions.
|
||||||
version: 1.0.21
|
version: 1.0.22
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.18.6 <3.0.0"
|
sdk: ">=2.18.6 <3.0.0"
|
||||||
@ -12,14 +12,14 @@ dependencies:
|
|||||||
|
|
||||||
crypto: ^3.0.2
|
crypto: ^3.0.2
|
||||||
|
|
||||||
firebase_auth: ^4.2.9
|
firebase_auth: ^4.3.0
|
||||||
firebase_analytics: ^10.1.0
|
firebase_analytics: ^10.1.6
|
||||||
firebase_core: ^2.7.0
|
firebase_core: ^2.8.0
|
||||||
firebase_messaging: ^14.2.1
|
firebase_messaging: ^14.3.0
|
||||||
firebase_remote_config: ^3.0.9
|
firebase_remote_config: ^3.0.15
|
||||||
flutter_facebook_auth: ^5.0.7
|
flutter_facebook_auth: ^5.0.7
|
||||||
flutter_dotenv: ^5.0.2
|
flutter_dotenv: ^5.0.2
|
||||||
google_sign_in: ^5.4.3
|
google_sign_in: ^6.0.2
|
||||||
|
|
||||||
http: ^0.13.5
|
http: ^0.13.5
|
||||||
|
|
||||||
@ -31,8 +31,8 @@ dependencies:
|
|||||||
|
|
||||||
package_info_plus: ^3.0.2
|
package_info_plus: ^3.0.2
|
||||||
|
|
||||||
sentry_flutter: ^6.9.1
|
sentry_flutter: ^7.3.0
|
||||||
shared_preferences: ^2.0.17
|
shared_preferences: ^2.0.20
|
||||||
|
|
||||||
posthog_session:
|
posthog_session:
|
||||||
git:
|
git:
|
||||||
|
Loading…
Reference in New Issue
Block a user