# Installing Or Updating

  1. Download the latest release from the GitHub Releases page.
  2. Unarchive the file and copy the httpheader directory to craft/plugins
    • If you are updating, replace the existing httpheader directory
  3. Log in to your Craft control panel and navigate to “Settings > Plugins”
  4. Locate “HTTP Header” in the list and click “Install” or “Update”

HTTP Header for Craft is now installed or updated.

# Usage

Example
												
{{ httpHeader({
    devMode: false,
    disposition: "attachment",
    fileName: "myfile.pdf",
    contentType: "application/json",
    status: 404,
    lang: en,
    accessOrigin: "*"
}) }}