View | Details | Raw Unified | Return to bug 24369
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_24369_CORS.perl (+13 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        INSERT IGNORE INTO `systempreferences`
5
            (`variable`, `value`, `options`, `explanation`, `type`)
6
        VALUES
7
            ('AccessControlAllowOrigin', '', NULL, 'Set the Access-Control-Allow-Origin header to the specified value', 'Free');
8
    });
9
10
    # Always end with this (adjust the bug info)
11
    SetVersion( $DBversion );
12
    print "Upgrade to $DBversion done (Bug 24369 - Add CORS support to Koha)\n";
13
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 1-4 Link Here
1
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
1
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
2
('AccessControlAllowOrigin', '', NULL, 'Set the Access-Control-Allow-Origin header to the specified value', 'Free'),
2
('AccountAutoReconcile','0',NULL,'If enabled, patron balances will get reconciled automatically on each transaction.','YesNo'),
3
('AccountAutoReconcile','0',NULL,'If enabled, patron balances will get reconciled automatically on each transaction.','YesNo'),
3
('AcqCreateItem','ordering','ordering|receiving|cataloguing','Define when the item is created : when ordering, when receiving, or in cataloguing module','Choice'),
4
('AcqCreateItem','ordering','ordering|receiving|cataloguing','Define when the item is created : when ordering, when receiving, or in cataloguing module','Choice'),
4
('AcqEnableFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to invoice records.','YesNo'),
5
('AcqEnableFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to invoice records.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref (-1 / +6 lines)
Lines 1-4 Link Here
1
Web services:
1
Web services:
2
    General:
3
        -
4
            - "Set the Access-Control-Allow-Origin header to"
5
            - pref: 'AccessControlAllowOrigin'
6
              class: Text
7
            - "."
2
    REST API:
8
    REST API:
3
        -
9
        -
4
            - pref: RESTBasicAuth
10
            - pref: RESTBasicAuth
5
- 

Return to bug 24369