Filter: dt_ajax_requires_with_credentials

apply_filters( 'dt_ajax_requires_with_credentials', false ) → {bool}

Filter whether front end ajax requests should use xhrFields credentials:true.

Front end ajax requests may require xhrFields with credentials when the front end and back end domains do not match. This filter lets themes opt in. See https://vip.wordpress.com/documentation/handling-frontend-file-uploads/#handling-ajax-requests

Parameters:
Name Type Description
false bool

Whether front end ajax requests should use xhrFields credentials:true.

Since:
  • 1.0.0
Source:
Returns:

Whether front end ajax requests should use xhrFields credentials:true.

Type
bool