Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Enabling allow origin -> CORS (Adobe Granite Cross-Origin Resource Sharing Policy) config is not allowing to login into AEM instance

Avatar

Level 1

Hi,

I have added a domain in the "Allowed Origins" property in the com.adobe.granite.cors.impl.CORSPolicyImpl config and it locked out the AEM on-prem publish instance running on 6.5.5. I tried to login several times but no luck. I need this property to be updated and make the login work. Could someone please assist me here? 

Here is my config:

org.apache.felix.configadmin.revision:=L"2"
allowedpaths=[ \
".*", \
]
alloworigin=[ \
"https://www.trialexp.com", \
]
alloworiginregexp=[ \
"", \
]
exposedheaders=[ \
"", \
]
maxage=I"1800"
service.factoryPid="com.adobe.granite.cors.impl.CORSPolicyImpl"
service.pid="com.adobe.granite.cors.impl.CORSPolicyImpl.e23faca2-72d5-4964-9a97-f4608ee43458"
supportedheaders=[ \
"Origin", \
"Accept", \
"X-Requested-With", \
"Content-Type", \
"Access-Control-Request-Method", \
"Access-Control-Request-Headers", \
]
supportedmethods=[ \
"GET", \
"HEAD", \
"POST", \
]
supportscredentials=B"true"

0 Replies