Giter Club home page Giter Club logo

cwp-core's Introduction

CWP Core Module

Build Status Scrutinizer Code Quality codecov SilverStripe supported module

About this module

This module includes core configuration that is required for Common Web Platform sites to function correctly.

Configuration

There are some settings that can be modified in this module, depending on requirements. These are listed below.

XSS Protection

By default, CWP sites instruct newer browsers to protect against cross-site scripting (XSS) attacks. This is done using an HTTP header (X-XSS-Protection). More information on this header can be found on the Mozilla Developer Network site. To disable this feature, add the following to your YML configuration:

CWP\Core\Control\InitialisationMiddleware:
  xss_protection_enabled: false

Egress Proxy settings

CWP includes an egress proxy for all external requests made by SilverStripe sites running on CWP. This means that by default, all HTTP requests made using curl or PHP's stream functions are routed via a proxy. In some cases this may not be desired (e.g. if you wish to communicate with localhost). By default, there are two exceptions to this proxy: services.cwp.govt.nz and localhost. These cover all standard CWP use cases (e.g. searching via Solr).

You can disable the egress proxy entirely by adding the following YML configuration:

CWP\Core\Control\InitialisationMiddleware:
  egress_proxy_default_enabled: false

You can also add to the list of domains to disable the proxy by adding the following YML configuration:

CWP\Core\Control\InitialisationMiddleware:
  egress_proxy_exclude_domains:
    - example.com

Contributing

Translations

Translations of the natural language strings are managed through a third party translation interface, transifex.com. Newly added strings will be periodically uploaded there for translation, and any new translations will be merged back to the project source code.

Please use https://www.transifex.com/projects/p/silverstripe-cwp-core to contribute translations, rather than sending pull requests with YAML files.

cwp-core's People

Contributors

robbieaverill avatar mateusz avatar nightjar avatar scopeynz avatar chillu avatar ichaber avatar maxime-rainville avatar emteknetnz avatar kmayo-ss avatar assertchris avatar madmatt avatar raissanorth avatar dnsl48 avatar sachajudd avatar bergice avatar brettt89 avatar dhensby avatar mandrew avatar clarkepaul avatar phptek avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.