-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Description
Description
I'm using Coder to deploy apps. In coder workspace, every port is exposed with a subdomain, for example:
80-.coder.example.com (For web app, In my case it is Laravel server)
5174-.coder.example.com (Vite HMR server)
These urls is behind stateful authentication which requires certain cookies to be sent, but when I hit 5174-****.coder.example.com
directly from my browser I can visit the page, but when cross-site requests happens, loading 5174-****.coder.example.com
script from 80-****.coder.example.com
then the request to 5174-****.coder.example.com
gets redirected to coder's authentication page due to the request doesn't carry the cookies needed for authentication.
Suggested solution
Possible solution is allowing the user to configure the value of crossorigin="use-credentials" attribute for the script tag generated by vite.
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.