Sending CSRFToken via an API Action (not a Server Connect Form) should work the same as a Server Connect form
Actual behavior
Invalid CSRFToken error occurs. I'm unsure if this is the cause, but I do not see cookies (.sid and .auth) being sent in the API action headers in an App Flow. I also do not see an option to add Credentials.
How to reproduce
Create an API action that performs a POST against a Wappler-created server with an Input Data field of CSRFToken.
Clients-side. I have an App Flow, that sends data from the client to the server for processing before returning it to the client to send to a third-party API.
This is the client-side app flow calling the Wappler server. The rfc822Streamer calls the server, then sends the results back to the client. Further down in the App Flow the results from the rfc822Streamer are passed to another api action that calls a third-party api. The CSRFToken is one of the Input Data fields.