Commit aa9a1601 authored by Terence Lee's avatar Terence Lee

add the CORS example of wild carding all routes

parent e578b082
......@@ -120,6 +120,18 @@ Using the headers key, you can set custom response headers. It uses the same ope
}
```
For example, to enable CORS for all resources, you just need to enable it for all routes like this:
```json
{
"headers": {
"/**": {
"Access-Control-Allow-Origin": "*"
}
}
}
```
### Route Ordering
* Root Files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment