dom/base/CORSMode.h
author Andrew Halberstadt <ahalberstadt@mozilla.com>
Fri, 21 Oct 2016 12:24:17 -0400
changeset 318984 85832226cbd70af940e2f093a28ebc9ec018fb48
parent 312982 b122c6cd236aebf834e61c9f713da142c2e01972
child 323244 5b16c69a1b81c1e1c101c67639bcf489f0d8cdcb
permissions -rw-r--r--
Bug 1311723 - Look for mozinfo.json in the correct place when running interactive loaners, r=armenzg MozReview-Commit-ID: K8fqlo0x4Oc

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef CORSMode_h_
#define CORSMode_h_

namespace mozilla {

enum CORSMode : uint8_t {
  /**
   * The default of not using CORS to validate cross-origin loads.
   */
  CORS_NONE,

  /**
   * Validate cross-site loads using CORS, but do not send any credentials
   * (cookies, HTTP auth logins, etc) along with the request.
   */
  CORS_ANONYMOUS,

  /**
   * Validate cross-site loads using CORS, and send credentials such as cookies
   * and HTTP auth logins along with the request.
   */
  CORS_USE_CREDENTIALS
};

} // namespace mozilla

#endif /* CORSMode_h_ */