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
As far as i understand the bun.Use() function is supposed to be sort of a middleware.
But when i use it it seems to ignore it, only when i put it inside bun.New(->> here <<--) it works.
📄 The description of the bug or the logic behind your proposal
I followed the CORS example in this repo, yet it wasn't working.
After a while i decided to made a test function to see if it even goes thru it (the CORS errors weren't making sense)
i found out that i wasn't.
Only when putting it inside the bun.New() it works.
💡 The feature or bug you are proposing
As far as i understand the bun.Use() function is supposed to be sort of a middleware.
But when i use it it seems to ignore it, only when i put it inside bun.New(->> here <<--) it works.
📄 The description of the bug or the logic behind your proposal
I followed the CORS example in this repo, yet it wasn't working.
After a while i decided to made a test function to see if it even goes thru it (the CORS errors weren't making sense)
i found out that i wasn't.
Only when putting it inside the bun.New() it works.
🚀 The expected result
i assume Use() suppose to act as middleware
Thank you in advance.
The text was updated successfully, but these errors were encountered: