The X-Frame-Options response header may appear twice in some cases.

About this task

The X-Frame-Options response header may appear twice because the vIDM service adds this header to the back end as well as to HAProxy. You can prevent it appearing twice with an appropriate configuration.

Procedure

  1. Open /etc/haproxy/conf.d/20-vcac.cfg for editing.
  2. Locate the following line in the front end section:

    rspadd X-Frame-Options:\ SAMEORIGIN

  3. Add the following lines before the line you located in the preceding step:

    rspdel X-Frame-Options:\ SAMEORIGIN

  4. Reload the HAProxy configuration using the following command.

    /etc/init.d/haproxy reload