Denoder / nuxt-module-alternatives

Alternative modules to use while waiting for Nuxt 3 Compatibility
MIT License
144 stars 14 forks source link

Not work with csurf middleware #101

Closed n4an closed 2 years ago

n4an commented 2 years ago

Environment

Linux Nuxt 3

Reproduction

One problem remains. In example I removed many code and not seen that it not work with csurf middleware too.

Updated example - https://github.com/n4an/nuxt-error-7 (problem /server/middleware/csurf.middleware.ts).

Describe the bug

When add csurf middleware

FetchError: 403 (/api/list)

Additional context

No response

Logs

No response

n4an commented 2 years ago

@Teranode vorbesti romana?

n4an commented 2 years ago

and also old issue (in previous reproduction it was eliminanted but in my project it persist)

_rawValue: FetchError: request to http://localhost:3000/api/products failed, reason: connect ECONNREFUSED 127.0.0.1:3000 ()

n4an commented 2 years ago

And

[h3] Implicit event handler conversion is deprecated. Use eventHandler() or fromNodeMiddleware() to define event handlers.
Handler: () => { return "Hello Nuxt3"; }

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

n4an commented 2 years ago

...