mirror of
https://github.com/clowzed/sero
synced 2024-05-23 01:32:13 +02:00
add CORS feature
This commit is contained in:
parent
d6e67e571e
commit
966f8a6abf
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue