cepharum/contao-cors

Contao 4.x bundle adding CORS support

0.0.1 2018-11-21 23:13 UTC

This package is not auto-updated.

Last update: 2024-11-16 02:36:52 UTC


README

This Contao 4.x bundle was developed to extend the CMS by supporting control of CORS headers on frontend.

Limit Access

By default this plugin is accepting requests on behalf of any domain. However, this is significantly weaking security of your website and thus you should explicitly lists all domains that might access your website in app/config/parameters.yml by adding this parameter:

parameters:
    ...
    cors.domains:
        - http://example.com
        - http://www.example.com
        - https://secure.example.com