pytechd

Adding parameters to image saving POST

Recommended Posts

More and more websites are adding cross site request forgery protections. These are embedded tokens in the HTML code that are passed via POST variable to the receiving script and help protect against cross-site forgeries. Many tools provide blanket CSRF protection (e.g., Django can enable CSRF for an entire web application with 1 configuration parameter).

 

 

 

Unfortunately, you can't use the "save image" function from Fusion Charts when the receiving script *must* receive this hidden token. For example, my specs documents indicate this is a requirement (often found in professional development, government development, etc).

 

 

 

Is there a way that you could add a configuration parameter that would allow arbitrary values be added to the "save image" POST?

 

 

 

As is, there is "width" "height" "bgcolor" and "data".

 

 

 

I would like to be able to add any variable I want via the embeded objects (in particular, though, I need "csrfmiddlewaretoken").

 

 

 

Tips?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now