mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
fix(pockethost): cors preflight
This commit is contained in:
parent
303b0f3d22
commit
a9b22ec4e7
@ -41,6 +41,7 @@ export const firewall = async () => {
|
||||
// Create Express app
|
||||
const app = express()
|
||||
|
||||
app.options('*', cors()) // include before other routes
|
||||
app.use(cors())
|
||||
app.use(enforce.HTTPS())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user