packages feed

snap-cors-1.2.0: snap-cors.cabal

name:                snap-cors
version:             1.2.0
synopsis:            Add CORS headers to Snap applications
description:
  Add CORS (cross-origin resource sharing) headers to Snap applications. This
  enables web applications running on other domains to make requests against
  another application.
  .
  Currently this package provides support for setting the
  @Access-Control-Allow-Origin@ and @Access-Control-Allow-Credentials@ headers,
  it does not yet do pre-flighting. If you need this, please open an issue on
  Github and I'll fix it ASAP (otherwise I will add this feature as time permits).

homepage:            http://github.com/ocharles/snap-cors
license:             BSD3
license-file:        LICENSE
author:              Oliver Charles
maintainer:          ollie@ocharles.org.uk
copyright:           Oliver Charles (c) 2013
category:            Web
build-type:          Simple
cabal-version:       >=1.8
extra-source-files:
  Changelog.md

source-repository head
  type: git
  location: git://github.com/ocharles/snap-cors.git

library
  hs-source-dirs: src
  exposed-modules:
    Snap.CORS
  build-depends:
    attoparsec >= 0.10 && <0.11,
    base >= 4.5 && < 5,
    bytestring >= 0.10 && < 0.11,
    case-insensitive >= 1.0 && <1.1,
    hashable >= 1.1 && <1.3,
    network >= 2.4 && < 2.5,
    snap >= 0.13 && < 0.14,
    text >= 0.11 && < 0.12,
    transformers >= 0.3 && < 0.4,
    unordered-containers >= 0.2 && <0.3
  ghc-options: -Wall

executable example
  main-is: Example.hs
  build-depends:
    base >= 4.5 && < 5,
    snap-cors,
    snap >= 0.13 && < 0.14,
    snap-server >= 0.9,
    snap-core >= 0.9