Action Code HTTP POST request fails on Chrome due to Mixed Content error

Custom Code

How can I get this call from an action code:

https://www.postman.com/cs-demo/public-soap-apis/request/g7lkg0j/list-of-countries-by-name

When i try it from action code (below) I get the error on Chrome console when i use Test Mode:

Mixed Content: The page at 'https://app.flutterflow.io/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso'. This request has been blocked; the content must be served over HTTPS.

I don't want to use API Calls. I want to use it from action code.

What have you tried so far?

I tried API Call which works from this link https://docs.flutterflow.io/data-and-backend/api-calls/soap-api-example-countries but i can't use it for my task.

I tried this action code:

import 'package:http/http.dart' as http;

...

final url = Uri.parse( 'http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso');
var response = await http.post(url);
final data = response.body;

....

Did you check FlutterFlow's Documentation for this topic?
No
3
3 replies