-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added OSGi CORS config file with comments
- Loading branch information
1 parent
e359394
commit 716e882
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...sgiconfig/config.publish/com.adobe.granite.cors.impl.CORSPolicyImpl~wknd-graphql.cfg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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":[ "" ] | ||
} |