mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-05 07:49:58 +00:00
add cors option to setup script
Merge pull request #113 from jojobii-arks/jojobii-arks/112
This commit is contained in:
commit
e4eac5bebe
1 changed files with 7 additions and 1 deletions
|
@ -42,6 +42,12 @@ rl.question(q, r1 => {
|
|||
rl.question(q, r2 => {
|
||||
if (r2) ob['port'] = r2
|
||||
if (!r1 && r2) ob['selfURL'] = `http://localhost:${r2}/`
|
||||
final()
|
||||
|
||||
console.log(Bright("\nWould you like to enable CORS? It allows other websites and extensions to use your instance's API.\n y/n (n)"))
|
||||
|
||||
rl.question(q, r3 => {
|
||||
if (r3.toLowerCase() !== 'y') ob['cors'] = '0'
|
||||
final()
|
||||
})
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue