giyu
Support for HTTP Browser Redirects in Windmill Functions (302 Response Handling)
@Hugo I managed to figure it out, I put the database resource in a separate folder and granted g/all users access to that folder so that when they reference that database resource the script manages to execute
13 replies
Support for HTTP Browser Redirects in Windmill Functions (302 Response Handling)
Hey @Hugo , thanks again for your advice on using a meta refresh for URL redirects.
I’m now using this setup to track email clicks (logging them in Windmill before redirecting the user).
It works great for non-logged-in visitors using a webhook token, but I’ve hit a snag with logged-in Windmill users who don’t have the right resource permissions—Windmill tries to use their session instead of honoring the token.
Ideally, I’d like to override the session whenever a valid token is present, so the link works for everyone without them having to log out or use incognito.
Is there any built-in approach (or upcoming feature) that allows token-based auth to override existing sessions?
I’m attaching a short video showing my current flow. Please let me know if there’s a known workaround or if you plan to add a “prefer token over session” option in the future.
Thank you again!
13 replies
Support for HTTP Browser Redirects in Windmill Functions (302 Response Handling)
how would I do that in the script? I've tried this but it doesnt work
import { Response } from '@windmill/worker-typescript'
export async function main(): Promise<Response<any>> {
return {
statusCode: 302,
headers: {
'Location': 'https://www.google.com'
},
response: 'Redirecting to Google...'
}
}
13 replies
Support for HTTP Browser Redirects in Windmill Functions (302 Response Handling)
I mean my intention is to call a windmill function via GET URL and then some custom code runs on the backend and then it redirects the client browser to "google.com" - the video below explains it
13 replies
[FIXED] Windmill Database Studio Type Conversion Issue
I figured it out - its to do with the latest v.1425.0 issue (https://newreleases.io/project/github/windmill-labs/windmill/release/v1.425.0) which was just released yesterday - I rolled back to 1.424 and its working 🙂
7 replies