|
@@ -177,6 +177,7 @@ class RadicaleDaemon(Daemon):
|
177
|
177
|
tracim_rights = 'tracim.lib.radicale.rights'
|
178
|
178
|
tracim_storage = 'tracim.lib.radicale.storage'
|
179
|
179
|
fs_path = cfg.RADICALE_SERVER_FILE_SYSTEM_FOLDER
|
|
180
|
+ allow_origin = cfg.RADICALE_SERVER_ALLOW_ORIGIN
|
180
|
181
|
|
181
|
182
|
radicale_config.set('auth', 'type', 'custom')
|
182
|
183
|
radicale_config.set('auth', 'custom_handler', tracim_auth)
|
|
@@ -188,6 +189,12 @@ class RadicaleDaemon(Daemon):
|
188
|
189
|
radicale_config.set('storage', 'custom_handler', tracim_storage)
|
189
|
190
|
radicale_config.set('storage', 'filesystem_folder', fs_path)
|
190
|
191
|
|
|
192
|
+ radicale_config.set(
|
|
193
|
+ 'header',
|
|
194
|
+ 'Access-Control-Allow-Origin',
|
|
195
|
+ allow_origin,
|
|
196
|
+ )
|
|
197
|
+
|
191
|
198
|
def _get_server(self):
|
192
|
199
|
from tracim.config.app_cfg import CFG
|
193
|
200
|
cfg = CFG.get_instance()
|