add CORS feature

This commit is contained in:
clowzed 2023-11-13 17:25:55 +03:00
parent d6e67e571e
commit 966f8a6abf

View file

@ -74,6 +74,7 @@ One key feature that it is self-hosted. This gives users more flexibility and co
- Custom 404.html `(on 404 status user will see your 404.html)`
- Custom 503.html `new` `(on disabled site)`
- Clean urls
- CORS
## 🔌 Built With
- `Rust`
@ -167,6 +168,9 @@ password = ""
[server]
url = "http://sero.com/"
subdomain = "clowzed"
[cors]
origins = []
```
### ✏️ Changing `sero.toml`
@ -181,6 +185,9 @@ password = ""
[server]
url = "http://awesome.com/"
subdomain = "oursite"
[cors]
origins = ["*"] # list of origins you trust
```
### ⬆️ Registration and uploading