forked from ome/omero-web-apps-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.omero
17 lines (13 loc) · 886 Bytes
/
config.omero
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# By default, we enable 'minimal_webapp' only
config append omero.web.apps '"minimal_webapp"'
# Add a link to the app from webclient toolbar
config append omero.web.ui.top_links '["Minimal-Webapp", "minimal_webapp_index", {"title": "Open app in new tab", "target": "_blank"}]'
# Uncomment this out to enable, if app has been installed
# config append omero.web.apps '"react_webapp"'
config set omero.web.debug True
# enable CORS so e.g. react-webapp can connect to OMERO.web on different origin
# See https://docs.openmicroscopy.org/latest/omero/sysadmins/unix/install-web.html
config append omero.web.apps '"corsheaders"'
config append omero.web.middleware '{"index": 0.5, "class": "corsheaders.middleware.CorsMiddleware"}'
config append omero.web.middleware '{"index": 10, "class": "corsheaders.middleware.CorsPostCsrfMiddleware"}'
config set omero.web.cors_origin_allow_all True