Browse Source

fix: Re-added cors.origin config option

Owen Diffey 3 years ago
parent
commit
82a57471ac
2 changed files with 6 additions and 0 deletions
  1. 1 0
      .wiki/Configuration.md
  2. 5 0
      backend/config/template.json

+ 1 - 0
.wiki/Configuration.md

@@ -27,6 +27,7 @@ Location: `backend/config/default.json`
 | `apis.discogs.client` | Discogs Application client, obtained from [here](https://www.discogs.com/settings/developers). |
 | `apis.discogs.secret` | Discogs Application secret, obtained with client. |
 | `apis.discogs.enabled` | Whether to enable Discogs API usage. |
+| `cors.origin` | Array of allowed request origin urls, for example `http://localhost`. |
 | `smtp.host` | SMTP Host |
 | `smtp.port` | SMTP Port |
 | `smtp.auth.user` | SMTP Username |

+ 5 - 0
backend/config/template.json

@@ -32,6 +32,11 @@
 			"enabled": false
 		}
 	},
+	"cors": {
+		"origin": [
+			"http://localhost"
+		]
+	},
 	"smtp": {
 		"host": "smtp.mailgun.org",
 		"port": 587,