ensuresXRequestedWith()
Home > @backstage/plugin-auth-backend
> ensuresXRequestedWith
Warning: This API is now obsolete.
Use inline logic to check that the
X-Requested-With
header is set to'XMLHttpRequest'
instead.
Signature:
ensuresXRequestedWith: (req: express.Request) => boolean
Parameters
Parameter |
Type |
Description |
---|---|---|
req |
express.Request |
boolean