mebjas / CSRF-Protector-PHP

CSRF Protector library: standalone library for CSRF mitigation
https://owasp.org/www-project-csrfprotector/
Other
211 stars 89 forks source link

Using with GetSimpleCMS #73

Closed vishy93 closed 7 years ago

vishy93 commented 7 years ago

Hello guys when I am trying to incorporate this in my GetSimpleCMS project I get the following error:

Uncaught SyntaxError: Unexpected token < (index):1954 Uncaught ReferenceError: csrfprotector_init is not defined at window.onload ((index):1954) at window.onload (main.min.js:20)

I have read through all of the documentations here, followed the steps thoroughly. Can't seem to see or fix where I have gone wrong. Would anyone know why I am getting these errors?

mebjas commented 7 years ago

That's weird. csrfprotector_init method is defined before it's called. Also, it's called after window is loaded. Could it be that build definition for GetSimpleCMS is making some changes or bundeling it.

Could you also start a thread with GetSimpleCMS folks?

@vishy93