XMLHTTPRequest is failing in InDesign's latest version. Please suggest what I need to do for resolving this issue.
What version exactly?
What operating system?
Please show some code we can test.
Will it work with a previous version?
If yes, what version of InDesign exactly?
( ACP )
InDesign version is 16.3
Yes it works with previous versions like 15.
Do you mean to say it fails in your CEP extensions? If I am not mistaken XMLHTTPRequest is an HTML API.
Yes in CEP extention.
"is failing" could be everything, please provide an error message and whatever version numbers CEP can produce.
Just a guess (I'm not doing CEP myself), but from some recent Slack discussion on a different CEP hosting app:
When you attempt a similar request in Chrome, would you run into cross-site scripting restrictions? If so, have a look at https://github.com/Adobe-CEP/CEP-Resources/issues/378 for now, and later take similar approaches to what you'd do in Chrome.
As @Dirk Becker mentioned, you should always provide as much information and samples as you can. We are not oracle's to guess what might be the reason for the issue. We need to know things like what is the error, under what conditions the error manifests. what is the software version and other relevant information like what troubleshooting steps you took to resolve and what were the results and most importantly share any samples(doc/code) that someone can use to the issue happening.
Let us know how does the suggestion given by @Dirk Becker work.
The issue is happening due to CORS.
And the suggestion by Drik is not working for me.
I updated the manifest file using those flags but still XMLHTTPReq are getting blocked due to CORS.
If you want to help, don't be vague. You can do better than "not working".
"XMLHTTPSReq is getting blocked due to CORS" What else can I tell beyond that? Isn't it selfexplanatory? Or do you want be to copy paste sample code on "How to make a XMLHTTPReq"??
You're the one who wants help .It's no use being grumpy, programmers are held to a much higher standard than ordinary users.You have been REPEATEDLY asked for more info, if you don't get the message everyone will just give up. I suggest that as well as sharing your exact error message - thank you - you share the exact code you are using. Don't expect anyone to read sample code and try to adapt it to whatever you are trying to do. If you aren't bothering to adapt the sample code, then do the work. Don't expect people to do a detailed reread and study of the discussion. Just the code, the error, the software in use and everything else anyone has asked for.