Following this Tut on how to enable CORS
Adobe Experience Manager Help | Understanding Cross-Origin Resource Sharing (CORS) with AEM
but upon saving, I'm getting that error and to no avail I have fixed it. had to ask forum.
THANKS!
Solved! Go to Solution.
Views
Replies
Total Likes
We created live environment and the problem was sovled!
Thanks everyone for the answer tho I really don't know what cause the error.
Views
Replies
Total Likes
If you use AEM version of JQuery - it has a token that takes care of CORS issues. Create a clientlib and then add dependencies property with value of cq.jquery.
Views
Replies
Total Likes
Thanks for the reply!
you mean this?
Adobe Experience Manager Help | Developing for Cross-Origin Resource Sharing (CORS) with AEM
Views
Replies
Total Likes
Hello Sir. Still getting the Ajax error. Can't even save a Sharing Policy
Views
Replies
Total Likes
Are you trying this in your local or DEV env ?
Views
Replies
Total Likes
Try on a fresh instance - this will tell us if issue is something is mis-configured or a server error.
Views
Replies
Total Likes
Hello! we've been trying to restart server again and again, trying different standard protocol still to no avail. we also thought it was something to do with PID so we search for a PID but to no avail.
Views
Replies
Total Likes
Oh sorry my bad. fresh instance, I thought refresh instance. we plan to do that but have not done it yet. I'll get back with the results THANK!
Views
Replies
Total Likes
Hello Sir!
Tested it in a new fresh instance yet still getting the AJAX error.
Views
Replies
Total Likes
I think it's local Env. I don't know what do you mean by dev env.
Views
Replies
Total Likes
The AEM server you are running , is it setup in your local machine and has a server as http://localhost:4502 ? If not is it in any cloud or linux box ? If so , that could be your development environment , which we call DEV
Views
Replies
Total Likes
Ah! I'm running local env. we use local or live here
Views
Replies
Total Likes
We created live environment and the problem was sovled!
Thanks everyone for the answer tho I really don't know what cause the error.
Views
Replies
Total Likes
I am glad you got it working.
Views
Replies
Total Likes
Views
Likes
Replies