Skip to main content

Security

The Security tab sets cross-origin resource sharing, password requirements, authentication behavior, and dynamic role-based access control (RBAC). Go to SettingsSecurity to access these settings.

CORS settings

Control which origins can access your API.

SettingDescription
Enable CORSWhen turned on, enables CORS for this project.
Allowed OriginsList of allowed CORS origins. Click + Add Origin to add more.

Rate limiting

Set rate limits to prevent abuse.

SettingDefaultDescription
Requests Per Minute500Maximum number of requests allowed per minute.
Burst Limit50Maximum number of concurrent requests allowed.

Other security settings

Set standard security headers.

SettingDefaultDescription
CSP Header Valuedefault-src 'self'Content Security Policy header value.
X-XSS-Protection1; mode=blockX-XSS-Protection header value.
X-Frame-OptionsSAMEORIGINX-Frame-Options header value.

Password policy

Define password requirements for user accounts.

SettingDefaultDescription
Minimum Length8Minimum number of characters required.
Maximum Age (days)90Days before password expiration.
History Count5Number of previous passwords to remember (prevents reuse).

Character requirements

Enable or disable specific character requirements:

RequirementDefaultDescription
Require UppercaseEnabledRequire at least one uppercase letter.
Require LowercaseEnabledRequire at least one lowercase letter.
Require NumbersEnabledRequire at least one number.
Require Special CharactersEnabledRequire at least one special character.

Authentication settings

Set how users authenticate with your application.

SettingDefaultDescription
Auth TypeJWTAuthentication mechanism. Choose between JWT, OAuth2, or Session.
JWT Secret(hidden)Secret key for JWT signing. Click the eye icon to reveal.
Token Expiration (seconds)3600How long access tokens remain valid.
Refresh Token Secret(hidden)Secret key for refresh token signing.
Refresh Token Expiration (seconds)604800How long refresh tokens remain valid (7 days default).
Password Salt Rounds10Number of bcrypt salt rounds for password hashing.
warning

Keep your JWT Secret and Refresh Token Secret secure. Never expose them in client-side code or public repositories.

Dynamic RBAC

Map an authentication collection, area, and roles for dynamic access control. Turn on Enable Dynamic RBAC to expose the rest of the options.

SettingDescription
Enable Dynamic RBACTurn on dynamic role-based access control.
Pass Permissions to FrontendInclude the resolved user permissions in the client payload.
Auth CollectionThe authentication collection to scope RBAC against.
AreaThe area scoped to the selected authentication collection.
Roles that can manage RBACThe roles granted access to the RBAC admin pages and API endpoints.
Permission SourceWhere permissions are resolved at runtime: In Memory, Redis Cache, From Database, or Inside JWT Token. Selecting Redis Cache reveals the Redis connection fields.

Redis connection

Shown when Permission Source is set to Redis Cache.

SettingDefaultDescription
Redis HostThe hostname of your Redis server.
Redis Port6379The port of your Redis server.
Redis PasswordThe authentication password for your Redis server.
Redis DatabaseThe database index (0–15) used for storing permissions.