Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cross Origins Issue

User_UKUNQMar 25 2019 — edited Mar 31 2019

Hello, I followed blog ( https://developer.oracle.com/databases/building-jet-crud-apps-odb12c ) to invoke rest web service  but am getting  CORS error ( refer below).  Have installed ORDS within sql developer ( version 18.1.0.095) and rest service works and returns json output. I tried setting "Origins Allowed"  at module level but still it gives gives the same error.

Can you please guide as how to setup the access control across domains in ORDS.

Thanks in advance.

Error :

Access to XMLHttpRequest at 'http://localhost:8080/ords/apps/hr/department/555' from origin 'http://localhost:8383' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Comments
Post Details
Added on Mar 25 2019
2 comments
1,565 views