I am trying to publish my data on IOTA Tangle using MAM. For this, I have designed a web form where I have to enter my seed and press the publish button. The actual data is fetched from firebase database and published to Tangle. My question is that is it secure to pass the seed to back end where I am running a node.js script to publish data? Or should I do the entire publish process in the front end and pass my seed to back end?
What could be the most secure way?