X-Metaweb-Request

This header is provided for use with services that write to freebase. It is one of the mechanisms in place to get around the problem of cross-site request forgery.

To allow HTML forms to use the service APIs, the services accept form POST requests which poses a risk of forged user actions. To be able to protect users from unauthorized form submissions generated by third-party sites and because client-side applications cannot set a custom HTTP header using an HTML form, most POST operations that result in a write to the system require this custom header.

The only exceptions are the /api/service/form_upload_* services. In order to support HTML input type="file" forms, it doesn't require the X-Metaweb-Request header and thus presents a cross-site request forgery vulnerability.

This header is used for two Freebase API services, mqlwrite and upload.

Search Help Center

Discussions

There are no conversations on this topic. Would you like to start one?

Start the Discussion »