To enhance application security, the following HTTP headers should be configured in the application.
File Location:
<AE_Application>/aeengine/WEB-INF/spring/security/spring-security.xml
Add the following under the <headers> section:
<headers>
<cross-origin-embedder-policy policy="require-corp" />
<cross-origin-resource-policy policy="same-origin" />
<cross-origin-opener-policy policy="same-origin" />
<permissions-policy policy="geolocation=(self 'https://ae.com')" />
</headers>
require-corpsame-originsame-origingeolocation=(self 'https://ae.com')You need to configure the permissions-policy header to control which domains are allowed to access browser geolocation.
In the line:
geolocation → controls access to location (GPS)
self → allows your own application domain
'https://ae.com' → allows that specific external domain
👉 Replace 'https://ae.com' with the actual trusted domain (if any), or remove it.
1. If geolocation is NOT required (recommended for VAPT):
<permissions-policy policy="geolocation=()" />
2. If only your application needs it:
<permissions-policy policy="geolocation=(self)" />
3. If external domain is required:
ae.com unless it is actually used
policy values should be updated based on client requirements and allowed domains