Flutter Dio - Moved Temporarily on Google App Script

Viewed 27

I create a function named doPost(e) in Google App Script, then return a value like this

return ContentService.createTextOutput("Hello World!");

When I try to call that function in Insomnia by link, it successfully returns "Hello World!", but when I call it with Dio in Flutter, it returns The document has moved <A HREF="https://script.googleusercontent.com...

I have tried all the ways on the internet, but still does not work, any solution for this? thank you so much for your help.

0 Answers
Related