v1.0.21
This commit is contained in:
parent
c41c40a975
commit
3c212320e5
@ -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.21
|
||||||
|
|
||||||
|
webapi CORS: test all domains
|
||||||
|
|
||||||
### Version 1.0.20
|
### Version 1.0.20
|
||||||
|
|
||||||
webapi CORS
|
webapi CORS
|
||||||
|
@ -65,7 +65,8 @@ 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',
|
||||||
|
"Access-Control-Allow-Origin": '*',
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Authorization": 'Bearer $authToken',
|
"Authorization": 'Bearer $authToken',
|
||||||
});
|
});
|
||||||
@ -99,7 +100,8 @@ 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',
|
||||||
|
"Access-Control-Allow-Origin": '*',
|
||||||
"Authorization": 'Bearer $authToken',
|
"Authorization": 'Bearer $authToken',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -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.20
|
version: 1.0.21
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.18.6 <3.0.0"
|
sdk: ">=2.18.6 <3.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user