Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

CRSF问题 #1432

Open
kingze opened this issue Dec 25, 2015 · 1 comment
Open

CRSF问题 #1432

kingze opened this issue Dec 25, 2015 · 1 comment

Comments

@kingze
Copy link

kingze commented Dec 25, 2015

上传需要CRSF验证时

一般先定义读取

    csrf_token = $('meta[name=csrf-token]').attr('content');
    csrf_param = $('meta[name=csrf-param]').attr('content');

然后在实例化时加入参数

    formData: {
            这里如何动态获取(csrf_param ): csrf_token
        },

谢谢。

@ScumPetard
Copy link

感谢

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants