The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Set Access-Control-Allow-Origin in Header of Rapidminer Server Response

kevin_reifkevin_reif Member Posts: 6 Learner III
edited November 2018 in Help

Hello Community,

 

I have a large problem for a long time and I need really help.

I want to use a process in a Web Service. For this I created the process in the stuido and uploaded it on the server.

When I call the process http://localhost:8080/api/rest/process/anonymous? via my jquery Ajax script, I get the folowing error in the console of my browser:

AccessControlOrigin.PNG

I set the rights in system settings of the server and rebooted many times:

large.png

Why does it not set the header in the response of the server?

The funniest part is, when I call the web service via postman (Windows application), it works fine and the server also set the header:

postman.PNG

I have no more clues what to do.. Please help..

 

 

Best Regards

 

Kevin

Tagged:

Answers

  • JEdwardJEdward RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 578 Unicorn

    Hi there, I think I found an answer to your issue on Stackoverflow.  Seems to be a JQuery thing. 

     

    https://stackoverflow.com/questions/5750696/how-to-get-a-cross-origin-resource-sharing-cors-post-request-working

     

    See if the last answer here solves your issue:

    <SPAN class="typ">Access</SPAN><SPAN class="pun">-</SPAN><SPAN class="typ">Control</SPAN><SPAN class="pun">-</SPAN><SPAN class="typ">Allow</SPAN><SPAN class="pun">-</SPAN><SPAN class="typ">Headers</SPAN><SPAN class="pun">:</SPAN><SPAN class="pln"> x</SPAN><SPAN class="pun">-</SPAN><SPAN class="pln">requested</SPAN><SPAN class="pun">-</SPAN><SPAN class="kwd">with</SPAN> 

     

     

     
Sign In or Register to comment.