Asked on StackOverflow but might be relevant here

Has anyone experienced the "A secret key is required to use CSRF" error when trying to host a flask app on a linode IP address? More context is in the link. This app runs fine and sends me emails in my local server, and shows the correct html pages at the IP address, but I can't even access the page that uses forms.

More info can be found here: [https://stackoverflow.com/questions/73979827/a-secret-key-is-required-to-use-csrf-linode-server-gunicorn-nginx-error-flask]

1 Reply

I'm by no means an expert with Flask, but I may have have some solutions from StackOverflow:

Each post contains slightly differing issues requiring slightly different solutions, so I hope this helps point you in the right direction. If you have already figured this out, I'd love to hear what you did so that you might be able to help anyone else who stumbles across this post.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct