Skip to content
/ volto-base Public

Various basic Volto defaults for EEA projects

Notifications You must be signed in to change notification settings

eea/volto-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

volto-base

A common place to put Volto common stuff. A replacement for the Volto server providing a builtin CORS proxy.

To use it, replace your index.js with:

import start from 'volto-base/start-server';

const reloadServer = start();

if (module.hot) {
  reloadServer();
}

In the config.js file, add a new key to the settings variable, named allowed_cors_destinations. This is an array of strings, each string being a hostname that will be allowed as proxy destination. For example, to allow embedding files from the eea.europa.eu domain, set the settings like:

settings.allowed_cors_destinations = ['eea.europa.eu']

Another option is to provide a system environment variable named ALLOWED_CORS_DESTINATIONS, which is a list of comma separated hostnames.

About

Various basic Volto defaults for EEA projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published