@floristcloud/api-lib 1.2.185 → 1.2.186
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/constant/error.js +1 -0
- package/constant/error.ts +1 -0
- package/package.json +1 -1
package/build/constant/error.js
CHANGED
|
@@ -1604,6 +1604,7 @@ exports.ERRORS = {
|
|
|
1604
1604
|
// CSRF
|
|
1605
1605
|
CSRF_TOKEN_MISSING: { code: 'CSRF001', message: 'CSRF token is missing', httpCode: 403 },
|
|
1606
1606
|
CSRF_TOKEN_INVALID: { code: 'CSRF002', message: 'CSRF token is invalid', httpCode: 403 },
|
|
1607
|
+
CSRF_ORIGIN_FORBIDDEN: { code: 'CSRF003', message: 'Cross-origin request is not allowed', httpCode: 403 },
|
|
1607
1608
|
// MOBILE AUTH
|
|
1608
1609
|
MOBILE_BROWSER_REQUEST_REJECTED: { code: 'MOB001', message: 'Browser requests are not allowed on this endpoint', httpCode: 403 },
|
|
1609
1610
|
MOBILE_RATE_LIMIT_EXCEEDED: { code: 'MOB002', message: 'Too many requests to mobile login endpoint', httpCode: 429 },
|
package/constant/error.ts
CHANGED
|
@@ -1666,6 +1666,7 @@ export const ERRORS = {
|
|
|
1666
1666
|
// CSRF
|
|
1667
1667
|
CSRF_TOKEN_MISSING: { code: 'CSRF001', message: 'CSRF token is missing', httpCode: 403 },
|
|
1668
1668
|
CSRF_TOKEN_INVALID: { code: 'CSRF002', message: 'CSRF token is invalid', httpCode: 403 },
|
|
1669
|
+
CSRF_ORIGIN_FORBIDDEN: { code: 'CSRF003', message: 'Cross-origin request is not allowed', httpCode: 403 },
|
|
1669
1670
|
|
|
1670
1671
|
// MOBILE AUTH
|
|
1671
1672
|
MOBILE_BROWSER_REQUEST_REJECTED: { code: 'MOB001', message: 'Browser requests are not allowed on this endpoint', httpCode: 403 },
|