Sounds like cross-site scripting. By default, JavaScript (JS) is prevented from calling servers other than the origin server that served the initial page.
Is you JS trying to call a different server?
-----Original Message-----
From: Booth Martin [mailto:booth@xxxxxxxxxxxx]
Sent: Tuesday, December 04, 2018 8:24 PM
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Subject: [WEB400] Header set Access-Control-Allow-Origin for web services
So far, I like what I am seeing with web service servers.
Next issue: the web service provides the JSON data properly formatted when it is accessed by the URL in a browser. However when I go after the same URL with a JavaScript application it tells me "Header set Access-Control-Allow-Origin violation" and suggestions for changing the Apache server..
That looks to me like "Beyond this there be dragons." I have neither the knowledge, desire, nor the authority for this. I am suspecting therefore that I am misunderstanding what needs to be done. I believe I am concerned with "XMLHttpRequest()"?
Suggestions?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.