Highlighted
Bowker Contributor.
Contributor.
82 views

Setting cors headers on results

Is there a way to have QMS return a header such as this?

Access-Control-Allow-Origin: *

This is for a normal search request not for the admin control (/action=query)

 

 

0 Likes
1 Reply
Micro Focus Contributor
Micro Focus Contributor

Re: Setting cors headers on results

Any IDOL component with an ACI port can be configured with:

[Service]

Access-Control-Allow-Origin=*

And will respond to an HTTP request (to any of its ACI, Service or Index ports) including an acceptable Origin header with a response header:

Access-Control-Allow-Origin: <origin>

Documentation link (for QMS, but in every component):

https://www.microfocus.com/documentation/idol/IDOL_12_4/QMS_12.4_Documentation/Help/#Configuration/Service/_ACI_Access_Control_Allow_Ori.htm%3FTocPath%3DConfiguration%2520Parameters%7CService%7C_____1

(You may have seen this already and dismissed because it talks about the Admin interface, but it applies to every request sent to the server)

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.