HI,
I try to use the “proxy api” feature.
I try to reproduce localy the github example from 07-api-embedded-app
step 1 :
- I launch shinyproxy on localhost:8080 .
http://localhost:8080/api/proxyspec return a json with 01_hello and 06_tabset, shinyproxy seems ok.
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 :
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