Sugarcrm 8 XSRF

流过昼夜 提交于 2019-12-02 05:29:39

问题


I've backup of ondemand instance for sugarcrm version 8.0.0 Enterprise Edition

It works normal for CRUD records and other stuff, but when I try to upload module via Zip it gives me following error

Cross Site Request Forgery (XSRF) Attack Detected

Form authentication failure (Administration -> UpgradeWizard). Contact your administrator.

I've tried following article Troubleshooting Cross-Site Forgery Messages

But the problem still persists. The problem only occurs for BWC modules IMO.


回答1:


EDIT: Before trying this work-around, check if you have the HTTP referer header disabled in your web browser, as that might be the reason for having the described problem in the first place.

If this is a local test/dev-instance you might want to add

['csrf']['soft_fail_form'] = true,

to your $sugar_config in config.php or config_override.php. That should cause the error to be logged only instead of aborting the action.

Note: This works on Sugar 7.9. I have yet to test it on 8.0.

Source: https://community.sugarcrm.com/community/developer/blog/2017/10/11/upcoming-security-changes-to-sugar



来源:https://stackoverflow.com/questions/50526161/sugarcrm-8-xsrf

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!