E1: AIS Is There A Possibility To Allow CORS (cross-origin Requests) On The AIS Server ? (Doc ID 2108561.1)

Last updated on MAY 30, 2017

Applies to:

JD Edwards EnterpriseOne Tools - Version 9.1 and later
Information in this document applies to any platform.

Goal

Can you please provide some information on CORS and if they can be allowed on AIS server in JDEdwards?

You have custom script on 1 server and AIS server on the different server.
There is a chrome browser security to turn on accept cross domain requests (CORS). If you have this on, then custom request fails with:
===
XMLHttpRequest cannot load http://hdhx7332:7380/jderest/defaultconfig.
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin "http://hdhx7042" is therefore not allowed access.
===

If you turn CORS off, then it works fine.

To turn it off, you have to open the chrome using a command prompt using the below command:

–disable-web-security
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms