2017 © Pedro Peláez
 

typo3-cms-extension cors

Cross Origin Resource Sharing for TYPO3 CMS.

image

pagemachine/cors

Cross Origin Resource Sharing for TYPO3 CMS.

  • Tuesday, July 3, 2018
  • by pagemachine
  • Repository
  • 2 Watchers
  • 5 Stars
  • 707 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 31 Versions
  • 67 % Grown

The README.md

CORS CI

Cross Origin Resource Sharing for TYPO3, (*1)

Installation

This extension is installable from various sources:, (*2)

  1. Via Composer:, (*3)

    composer require pagemachine/cors
  2. From the TYPO3 Extension Repository, (*4)

  3. From Github

Configuration

All configuration options can be set via TypoScript setup in config.cors or per page object in page.config.cors. The following options are available:, (*5)

Option Type Description
allowCredentials int/boolean Processing of the credentials flag
allowHeaders string List of allowed headers (X-Foo, ...), simple headers are always allowed
allowMethods string List of allowed methods (PUT, DELETE, ...), simple methods are always allowed
allowOrigin string List of allowed origins
allowOrigin.pattern string Regular expression for matching origins, make sure to escape as necessary
exposeHeaders string List of headers exposed to clients
maxAge int Cache lifetime of preflight requests, watch out for browser limits

Note that all options support stdWrap processing through their .stdWrap property., (*6)

Examples

  • Origin wildcarding:, (*7)

    config.cors {
      allowOrigin = *
    }
  • Simple list of origins:, (*8)

    config.cors {
      allowOrigin = http://example.org, http://example.com
      // More readable version
      allowOrigin (
        http://example.org,
        http://example.com
      )
    }
  • Matching origins via regular expressions:, (*9)

    config.cors {
      allowOrigin.pattern = https?://example\.(org|com)
    }
  • Allow specific methods:, (*10)

    config.cors {
      allowMethods = GET, POST, PUT, DELETE
    }
  • Allow headers:, (*11)

    config.cors {
      allowHeaders = (
        Content-Type,
        ...
      )
    }
  • Allow credential flag processing:, (*12)

    config.cors {
      // Set to 1/true to enable
      allowCredentials = 1
    }
  • Expose headers:, (*13)

    config.cors {
      exposeHeaders (
        X-My-Custom-Header,
        X-Another-Custom-Header
      )
    }
  • Set maximum age of preflight request result:, (*14)

    config.cors {
      // 10 minutes
      maxAge = 600
    }
  • Set maximum age via some stdWrap processing:, (*15)

    config.cors {
      maxAge.stdWrap.cObject = TEXT
      maxAge.stdWrap.cObject {
        value = 600
      }
    }

Issues

Found a bug? Need a feature? Let us know through our issue tracker., (*16)

Testing

All tests can be executed with the shipped Docker Compose definition:, (*17)

docker-compose run --rm app composer build

The Versions

03/07 2018
22/05 2018

dev-test-exceptions-negotiator

dev-test-exceptions-negotiator

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

by Mathias Brodala

cors typo3

22/05 2018

dev-test-exceptions

dev-test-exceptions

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

by Mathias Brodala

cors typo3

11/05 2018

2.0.6

2.0.6.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

by Mathias Brodala

cors typo3

12/04 2018

2.0.5

2.0.5.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

by Mathias Brodala

cors typo3

12/04 2018

dev-static-analysis

dev-static-analysis

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

by Mathias Brodala

cors typo3

12/04 2018

dev-codestyle

dev-codestyle

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

by Mathias Brodala

cors typo3

04/12 2017

dev-php72

dev-php72

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Mathias Brodala

cors typo3

07/03 2017

2.0.4

2.0.4.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Mathias Brodala

cors typo3

13/01 2017

2.0.3

2.0.3.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php ^5.6 | ^7.0

 

The Development Requires

by Mathias Brodala

cors typo3

16/08 2016

2.0.2

2.0.2.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php ^5.6 | ^7.0

 

The Development Requires

by Mathias Brodala

cors typo3

16/08 2016

dev-eight

dev-eight

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php ^5.6 | ^7.0

 

The Development Requires

by Mathias Brodala

cors typo3

16/08 2016

2.0.1

2.0.1.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php ^5.6 | ^7.0

 

The Development Requires

by Mathias Brodala

cors typo3

13/04 2016

2.0.0

2.0.0.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

07/03 2016

1.3.1

1.3.1.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

07/03 2016

1.3.0

1.3.0.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

07/03 2016

dev-taa-14

dev-taa-14

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

26/10 2015

1.2.13

1.2.13.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

10/08 2015

1.2.12

1.2.12.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

23/03 2015

1.2.11

1.2.11.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

16/03 2015

1.2.10

1.2.10.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

27/02 2015

1.2.9

1.2.9.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

27/02 2015

1.2.8

1.2.8.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

27/02 2015

1.2.7

1.2.7.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

26/02 2015

1.2.6

1.2.6.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

24/02 2015

1.2.5

1.2.5.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

24/02 2015

1.2.4

1.2.4.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

03/02 2015

1.2.3

1.2.3.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3

14/11 2014

1.2.2

1.2.2.0

Cross Origin Resource Sharing for TYPO3 CMS.

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3

 

The Development Requires

by Mathias Brodala

cors typo3