Title: HttpOnly Flag
Last modified: June 10, 2024

---

# HttpOnly Flag

 *  Resolved [ryanothelo](https://wordpress.org/support/users/ryanothelo/)
 * (@ryanothelo)
 * [2 years ago](https://wordpress.org/support/topic/httponly-flag/)
 * Hi,
 * Our security scanners have detected that the `mailchip_landing_site` cookie is
   missing the HttpOnly flag and has deemed it as a security issue. 
   Can you please
   help me resolve this?
 * Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [ryanhungate](https://wordpress.org/support/users/ryanhungate/)
 * (@ryanhungate)
 * [2 years ago](https://wordpress.org/support/topic/httponly-flag/#post-17814599)
 * As of release 4.1 which just went out today, we’ve added a filter for anyone 
   wanting to alter the cookie settings. Here’s an example of how to do this – just
   by adding this snippet to your functions.php file.
 *     ```wp-block-code
       add_filter('mailchimp_cookie_data', function($data) {    $data['options']['httponly'] = true;    return $data;});
       ```
   
 * The filter is provided with a `name` of the cookie and the `options` are the 
   options needs to be returned to the `setcookie` function. For this example, it
   will set the `httponly` to true as you needed. Hope this helps!
 *  Plugin Author [ryanhungate](https://wordpress.org/support/users/ryanhungate/)
 * (@ryanhungate)
 * [2 years ago](https://wordpress.org/support/topic/httponly-flag/#post-17814669)
 * For anyone else looking into this problem – we’ve added a wiki article here as
   well:
 * [https://github.com/mailchimp/mc-woocommerce/wiki/Configuration-for-Setting-HttpOnly-Flag](https://github.com/mailchimp/mc-woocommerce/wiki/Configuration-for-Setting-HttpOnly-Flag)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HttpOnly Flag’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp-for-woocommerce/assets/icon-256x256.png?rev=1509501)
 * [Mailchimp for WooCommerce](https://wordpress.org/plugins/mailchimp-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ryanhungate](https://wordpress.org/support/users/ryanhungate/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/httponly-flag/#post-17814669)
 * Status: resolved