![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
The REST Dispatch and Reply activity handles cross-origin requests according to the following rules:
• The Value of the origin parameter in the request header maps to the value of the Access-Control-Allow-Origin parameter in the response header.
• The value of the Access-Control-Allow-Methods parameter is set to OPTIONS, GET, PUT, POST, DELETE, and *.
The REST Dispatch and Reply activity handles OPTIONS requests according to the following rules:
• The value of the origin parameter in the request header maps to the value of the Access-Control-Allow-Origin parameter in the response header.
• The value of the access-control-request-method parameter in the request header maps to the value of the Access-Control-Allow-Methods parameter in the response header.
• The value of the access-control-request-headers parameter in the request header maps to the value of the Access-Control-Allow-Headers parameter in the response header.
• By default, the value of the Access-Control-Max-Age parameter in the response header is set to 20 days. You can add the same response headers to overwrite default values.
Web browsers have different implementation mechanisms. Normally, the Access-Control-Max-Age parameter is expired before the value set in it.There is an exception that the HTTP Receiver activity can handle cross-origin requests, even though the server uses Tomcat. The prerequisite is that you must install TIBCO Runtime Agent 5.9 or above and TIBCO ActiveMatrix BusinessWorks 5.12 or above. Then, add the bw.plugin.http.enableDoOptions=true property to the designer.tra file in the TIBCO_HOME\designer\version_number\bin directory.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |