Update security headers
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Changes the app's security header settings and returns them as they now stand.
Send only the settings you want to change. A setting you leave out keeps its value.
A change applies to the published app right away, with no need to deploy it again. It doesn't affect the app editor's preview.
Turning on a setting that Get security scan recommends in header_recommendations removes that recommendation from the scan result.
put/api/apps/{app_id}/security/headers
Request
- Base URLhttps://app.base44.com
- URLhttps://app.base44.com/api/apps/{app_id}/security/headers
- AuthHTTP bearer
Path parameters
app_idstring required
ID of the app.
Request body
Example request
{
"prevent_iframe_embedding": true
}Response
The app's security header settings after the change.
Example response
{
"result": {
"embedding_origins": [
"https://partners.acme.com"
],
"org_embedding_origins": [
"https://partners.acme.com"
],
"app_policy": {
"mode": "allowlist",
"origins": [
"https://partners.acme.com"
]
},
"effective_policy": {
"mode": "allowlist",
"source": "app",
"origins": [
"https://partners.acme.com"
]
}
}
}Changes
- info
added the non-success response with the status
- info
- info
the endpoint scheme security
PersonalAccessTokenAuthwas added to the API
- info