fix CORS policy
This commit is contained in:
parent
02124ce920
commit
3a2a38c0b6
|
|
@ -35,7 +35,10 @@ const { preflight, corsify } = cors({
|
||||||
// 10.*.*.* with any port
|
// 10.*.*.* with any port
|
||||||
/^http:\/\/10\.\d+\.\d+\.\d+:\d+$/,
|
/^http:\/\/10\.\d+\.\d+\.\d+:\d+$/,
|
||||||
// Production domain
|
// Production domain
|
||||||
/^https:\/\/jeffemmett\.com$/
|
/^https:\/\/jeffemmett\.com$/,
|
||||||
|
/^https:\/\/www\.jeffemmett\.com$/,
|
||||||
|
// Worker domain
|
||||||
|
/^https:\/\/jeffemmett-canvas\.jeffemmett\.workers\.dev$/
|
||||||
]
|
]
|
||||||
|
|
||||||
// Check if origin matches any of our patterns
|
// Check if origin matches any of our patterns
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue