Hi, just i am learning adobe AEM and while practicing getting below an error.
| com.adobe.granite.cors.impl.CORSPolicyImpl |
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hello @Kishore1215
>> Please validate your CORS Configuration :
com.adobe.granite.cors.impl.CORSPolicyImpl:
Allowed Origins: http://localhost:3000
Allowed Paths: /content/wknd (or /)
Allowed Methods: GET, POST, OPTIONS
Allowed Headers: *
Supports Credentials: true
>> Make sure your servlet matches the CORS policy path.
If using a custom servlet, ensure it sends correct CORS headers and handles OPTIONS requests.
>> In Browser Console, inspect the API response headers for Access-Control-Allow-Origin - If missing, the CORS configuration is still incorrect or not applied
>> Your config must allow the OPTIONS method if your React app sends it before GET/POST.
Views
Replies
Total Likes
Hello @Kishore1215
>> Please validate your CORS Configuration :
com.adobe.granite.cors.impl.CORSPolicyImpl:
Allowed Origins: http://localhost:3000
Allowed Paths: /content/wknd (or /)
Allowed Methods: GET, POST, OPTIONS
Allowed Headers: *
Supports Credentials: true
>> Make sure your servlet matches the CORS policy path.
If using a custom servlet, ensure it sends correct CORS headers and handles OPTIONS requests.
>> In Browser Console, inspect the API response headers for Access-Control-Allow-Origin - If missing, the CORS configuration is still incorrect or not applied
>> Your config must allow the OPTIONS method if your React app sends it before GET/POST.
Views
Replies
Total Likes
Hi, Thanks for the reply.
I have added below points in http://localhost:4502/system/console/configMgr . still getting same error.
Allowed Origins: http://localhost:3000
Allowed Paths: /content/wknd (or /)
Allowed Methods: GET, POST, OPTIONS
Allowed Headers: *
Supports Credentials: true
Views
Replies
Total Likes
hi @Kishore1215,
I occasionally find these plugins very helpful:
https://chromewebstore.google.com/detail/cors-unblock/lfhmikememgdcahcdlaciloancbhjino
https://chromewebstore.google.com/detail/cross-domain-cors/mjhpgnbimicffchbodmgfnemoghjakai
Views
Replies
Total Likes
Thaks it works now. after adding CORS plug in to edge browser.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies