fix CORS policy
This commit is contained in:
parent
93782549c9
commit
dc74f5d8a5
|
|
@ -35,7 +35,10 @@ const { preflight, corsify } = cors({
|
|||
// 10.*.*.* with any port
|
||||
/^http:\/\/10\.\d+\.\d+\.\d+:\d+$/,
|
||||
// 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue