mirror of
https://github.com/Permissionless-Software-Foundation/x402-base-facilitator.git
synced 2026-09-21 16:52:01 -07:00
fix(cors): Turning CORS *on* by default
This commit is contained in:
+2
-1
@@ -42,7 +42,8 @@ async function startServer () {
|
||||
modules(app)
|
||||
|
||||
// Enable CORS for testing
|
||||
// app.use(cors({origin: '*'}))
|
||||
// THIS IS A SECURITY RISK. COMMENT OUT FOR PRODUCTION
|
||||
app.use(cors({ origin: '*' }))
|
||||
|
||||
// MIDDLEWARE END
|
||||
|
||||
|
||||
Reference in New Issue
Block a user