Using a Web Application on a fortigate via jump issues a CORS error and does not work #46350
-
|
Expected behavior: Web App on fortigate mgmt should open mgmt Current behavior: Errors in console : Access to manifest at 'https://:6060/web/launch/.?path=%2Ffavicon%2Fsite.webmanifest' (redirected from 'https://.:6060/favicon/site.webmanifest') from origin 'https://.:6060' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. It seems that it tries from firewall.teleport.example.com to access something teleport.example.com Bug details:
I've tried using many variants of rewrite but nothing works Any feedback is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
|
Your You also don't need a port on the redirect. |
Beta Was this translation helpful? Give feedback.
-
|
Maybe it is relevant, as i have little knowledge about this, but we also had difficulty using a proxypass for fortigates as the return content was always with the IP of the fortigate and not with the IP of the host doing the proxypass |
Beta Was this translation helpful? Give feedback.
-
|
One year later, with 16.4.x which features CORS redirect, this still doesn't work: Pseudocode: After more investigation it seems the rewrite redirect is not working as requested. Possible relation to #43280 ? URL requested is https://firewall.mgmt.com/favicon/site.webmanifest hence the CORS error |
Beta Was this translation helpful? Give feedback.
-
|
Having dealt with the same issue, adding the following to the web application fixed it for us assuming you do not use Teleport to authenticate towards the Fortigate: Although the CORS errors would suspect otherwise this in the end solved it for us. @Atroskelis does this work on your end as well for Fortigate? For those using Forticlient EMS as well, the web-ui there will give a header too large which can be fixed with this as well. |
Beta Was this translation helpful? Give feedback.
-
|
Many thanks @FriedBoard . Running teleport v17.7.19 with your suggested config above works ! |
Beta Was this translation helpful? Give feedback.




Having dealt with the same issue, adding the following to the web application fixed it for us assuming you do not use Teleport to authenticate towards the Fortigate:
Although the CORS errors would suspect otherwise this in the end solved it for us. @Atroskelis does this work on your end as well for Fortigate? For those using Forticlient EMS as well, the web-ui there will give a header too large which can be fixed with this as well.