Sometimes you need something faster than the amazing Wappler devs can arrange. So to answer my own topic (How to send a response with custom header) I created a module that allows me to set headers in a response created by a server action.
To quote @JonL: Drop these two babies in /extensions/server_connect/modules
Features:
- Set headers in your response
- Default status of a response is 200
##Example use case: setting a [Content-Type in your response] ##(Server Connect Response Action -> Set Content-Type in response headers) and a couple of other headers:
1.Add the action in a server action:
-
Add headers, for example:
-
The server now responds with the set headers:
Itβs my first module - tips/contributions are welcome
Updates
2022.01.08 | V2: Simplified code, fixed dmx {{variable}}
not parsing and showing as plaintext
Community Page
Last updated:
Last updated: