CatalinIuga
cors header issue
I think you might be missing some headers from your backend. https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#the_http_response_headers & https://stackoverflow.com/a/46505542 should be of help. You might also need
Access-Control-Allow-Credentials: true
.11 replies
Can non-TS artefacts (images, MD files, etc.) be added to the "deno build" bundle?
This package seems to fit: https://jsr.io/@nfnitloop/deno-embedder. There's also an older project, I don't know if it works anymore, but maybe it could still prove helpful: https://github.com/mandarineorg/leaf
6 replies
[uncaught application error]: TypeError - ctx.request.body is not a function
I belive the way you are getting the request body is outdated: https://github.com/oakserver/oak/blob/f73348c78c6140e1251d20496262e29ed66741c8/CHANGELOG.md?plain=1#L189C6-L189C6
Here's how you parse the body as form data:
6 replies
Mono Repo - Enable Paths
there's also a stream about monorepos using Deno 2morow if you are interested:
https://www.youtube.com/live/OMJKEDvsT7Q?si=id7tc_EeJIXv_K-B
15 replies
Mono Repo - Enable Paths
Checklist:
- installed Deno?
- installed Deno VS code extension?
- correct path specified in settings.json?
You could also enable Deno for the whole workspace using Ctrl + Shift + P > Deno: Enable and see if that works first hand.
15 replies
How to resolve: http2 error: stream error detected: unspecific protocol error detected?
The only useful thing I found was this discussions: https://github.com/denoland/deno/discussions/14851
Beside trying to switch to http:... insted of https:... , you could techically use a TCP connection to make requests. More effort than using fetch since you have to construct the HTTP requests yourself, but it could work. Here's docs about TCP connections: https://docs.deno.com/deploy/api/runtime-sockets
6 replies