Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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