chromium/services/network/public/mojom/x_frame_options.mojom

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module network.mojom;

// This enum represents the possible values for the X-Frame-Options header:
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#the-x-frame-options-header.
enum XFrameOptionsValue {
  kNone,       // No XFO header is present.
  kDeny,       // XFO: DENY
  kSameOrigin, // XFO: SAMEORIGIN
  kAllowAll,   // XFO: ALLOWALL
  kInvalid,    // XFO: [anything other than DENY, SAMEORIGIN, or ALLOWALL]
  kConflict    // Multiple XFO headers are present, with distinct values.
};