Skip to content

Commit

Permalink
Added OSGi CORS config file with comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SachinMali committed Aug 8, 2023
1 parent e359394 commit 716e882
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// This OSGi configuration is to support local development on the AEM SDK.
// The Dispatcher CORS configuration should be used when deploying to AEM as a Cloud Service.
// See https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/deployments/configurations/cors.html
{
"alloworigin":[
""
],
"alloworiginregexp":[
"http://localhost:.*"
],
"allowedpaths": [
"/graphql/execute.json.*",
"/content/_cq_graphql/wknd-shared/endpoint.json",
"/content/experience-fragments/.*"
],
"supportedheaders": [
"Origin",
"Accept",
"X-Requested-With",
"Content-Type",
"Access-Control-Request-Method",
"Access-Control-Request-Headers"
],
"supportedmethods":[
"GET",
"HEAD",
"POST"
],
"maxage:Integer": 1800,
"supportscredentials": false,
"exposedheaders":[ "" ]
}

0 comments on commit 716e882

Please sign in to comment.