lune-org/lune

Implement a method that can return a Roblox CSRF-Token

Closed this issue · 1 comments

Some actions on Roblox require a CSRF-Token, previously in Remodel we were able to use a custom build of Remodel to create entirely new models. But since Remodel has been discontinued and Lune is it's successor, I'd love to have a method in the Roblox API that can give us this functionality back. As far as I can see, I cannot implement this on the lua side.

Cheers!

You can definitely handle CSRF tokens using what Lune already has built in, they are really just some extra HTTP headers to be aware of. Here's a direct example from the remodel migration guide and the remodel.luau module it provides: https://github.com/lune-org/docs/blob/4a9aa952ca94fec75fd14c00b5140b5f5fe28ab6/modules/remodel.luau#L136-L158