Proxy API - 07-api-embedded-app not working

HI,

I try to use the “proxy api” feature.
I try to reproduce localy the github example from 07-api-embedded-app

step 1 :

step 2 :

  • I create an apache serveur with docker run -v C:\path_to\shinyproxy-config-examples-master\07-api-embedde d-app:/usr/local/apache2/htdocs/ -p 80:80 httpd

step 3 :

on http://localhost

I see the index.html file and clic on “Lauchn a proxy”

But I got an error “Reason: CORS header ‘Access-Control-Allow-Origin’ missing” ,

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/api/proxy/01_hello. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

So I add an .htaccess file next to the index.html containing Header set Access-Control-Allow-Origin "*"

but same Error.

I try to use a nginx base docker imagewith CORS directly well configured : shakyshane/nginx-cors-plus but same error.

If I try to use this firefox extension: https://addons.mozilla.org/en-US/firefox/addon/cors-everywhere/ I have another error message

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/api/proxy/01_hello. (Reason: CORS preflight channel did not succeed)

Any clue what I did wrong ?

Regards