Post-Request via Generic-Javascript-View Node

Hi Alexander,

thanks for your help. Tried this, but it did not quite work. I get the following error message:

" [Report Only] Refused to connect to ‘https://REQUESTURL’ because it violates the following Content Security Policy directive: “default-src ‘self’”. Note that ‘connect-src’ was not explicitly set, so ‘default-src’ is used as a fallback"

“POST http://MYURL/csp-report 404”

“Access to XMLHttpRequest at ‘https://REQUESTURL’ from origin ‘http://MYURL’ 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.”

“POST https://REQUESTURL net::ERR_FAILED”

I have read that another option would be to add an Access-Control-Allow-Origin header to the response from the KNIME Server (Source: CORS header issues when using KNIME REST API). How does that work exactly? Do I simply have to specify my URL in the web.xml from my server under the parameter cors.allowed.origins and then it should work or do i have to perfom any further actions?

Best Regards
Marty