On 2/21/25 4:18 AM, pavithra vijayakumar wrote:
Hi,
I'm using the following JavaScript code in my Blazor app (https://
localhost:724 <https://localhost:7248/>8),but I'm encountering a CORS
error when I try to connect with guacamole.
...
*Cors error: *
Access to fetch at 'http://localhost:8081/#/client/mvrfh789jgh= <http://
localhost:8081/#/client/mvrfh789jgh=>' <http://localhost:8081/api/
tokens%27> from origin 'https://localhost:7248' has been blocked by CORS
policy: No 'Access-Control-Allow-Origin' header is present on the
requested resource. If an opaque response serves your needs, set the
request's mode to 'no-cors' to fetch the resource with CORS disabled.**
You will need to use a reverse proxy like Nginx or Apache HTTPD to add
the "Access-Control-Allow-Origin" header to responses from Tomcat.
- Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org