Fix CSP issue on WebFinger service (#2541)
* Fix CSP issue on WebFinger service WebFinger RFC states that CSP should allow any origin to access WebFinger resources. * Update webfinger.ts
This commit is contained in:
parent
03efb1419d
commit
9878d1ac63
1 changed files with 3 additions and 0 deletions
|
@ -1,9 +1,12 @@
|
|||
import * as cors from 'cors'
|
||||
import * as express from 'express'
|
||||
import { asyncMiddleware } from '../middlewares'
|
||||
import { webfingerValidator } from '../middlewares/validators'
|
||||
|
||||
const webfingerRouter = express.Router()
|
||||
|
||||
webfingerRouter.use(cors())
|
||||
|
||||
webfingerRouter.get('/.well-known/webfinger',
|
||||
asyncMiddleware(webfingerValidator),
|
||||
webfingerController
|
||||
|
|
Loading…
Reference in a new issue