You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can read more on SSH port forwarding [here](https://www.ssh.com/academy/ssh/tunneling/example).
97
+
98
+
## Cross-origin resource sharing (CORS)
99
+
100
+
Coder automatically sets headers that allow requests between separately
101
+
forwarded applications belonging to the same user.
102
+
103
+
### Authentication
104
+
105
+
Since forwarded ports are private, cross-origin requests must include
106
+
credentials (set `credentials: "include"` if using `fetch`) or the requests
107
+
cannot be authenticated and you will see an error resembling the following:
108
+
109
+
> Access to fetch at 'https://dev.coder.com/api/v2/applications/auth-redirect' from origin 'https://8000--dev--user--apps.dev.coder.com' 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.
110
+
111
+
### Headers
112
+
113
+
Below is a list of the cross-origin headers Coder sets with example values:
0 commit comments