-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intra-App routing not working #298
Comments
Validating that this is still an issue for the V3 SDK. |
This is due to the way the fetch API spec is defined. This is something that needs to be addressed in |
This is currently a blocker for building multi-component applications in JS. We need to document how users can work around this -- i.e. by using the full URL header. Or by implementing local service chaining. |
@radu-matei, there is an open workaround in Spin - spinframework/spin#3003 and discussion there would be great. |
Also, the full URL workaround is not pretty because then the user would have to know the URL of the deployed app before writing the application to allow list it in the manifest which would also mean that the application can not be easily moved around. |
@radu-matei The spinframework/spin#3003 fix is blocked on a review, but otherwise I believe it's ready to go. |
The following method of calling a route within a Spin app written in JS/TS does not work: https://developer.fermyon.com/spin/v2/http-outbound#intra-application-http-requests-by-route
It looks like the call is using the host-name that
spin up
is binding to - e.g.,http://localhost:3001
, which causes the following error, even with havingallowed_outbound_hosts = ["http://self", "https://self"]
inspin.toml
The text was updated successfully, but these errors were encountered: