microsoft / dev-tunnels

Dev Tunnels SDK
MIT License
286 stars 20 forks source link

Not able to load tunnel url as iframe src #468

Closed mPaella closed 1 month ago

mPaella commented 1 month ago

when using the tunnel url as the src of an iframe, i get the following error Refused to frame 'https://github.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".

repro:

<iframe src="https://<YOUR_TUNNEL_URL>" />
derekbekoe commented 1 month ago

It appears the iframe is attempting to load the GitHub login page. Switching the tunnel port to allow anonymous access should resolve the issue. If not, feel free to let us know.

derekbekoe commented 1 month ago

Closing as this is by-design.