I have created an app named 'account'. In that created html form < account/account/www/signup.html >. if I put frappe.csrf_token in my script file. The console printed frappe is not defined.
How to import Frappe in html. I've not found anything related to that.
I have tried
headers: {
"X-Frappe-CSRF-Token": frappe.csrf_token
},
like that I include the csrf token, but frappe error throws when I submit
frappe.exceptions.CSRFTokenError: Invalid Request
you need to put your code inside frappe.ready function