Ziko
Ziko
NNuxt
Created by Ziko on 4/8/2024 in #❓・help
Getting Nuxt page (URL/Name) in API server request?
I'm trying to do a pseudo CMS, so i need to validate the page url. Which is why i dont want to do it in query/body
15 replies
NNuxt
Created by Ziko on 4/8/2024 in #❓・help
Getting Nuxt page (URL/Name) in API server request?
Just seems like something that should be easily done
15 replies
NNuxt
Created by Ziko on 4/8/2024 in #❓・help
Getting Nuxt page (URL/Name) in API server request?
Is it not possible to set some context on the event.context in the eventHandler ? I see this as the least worse idea ATM
15 replies
NNuxt
Created by Ziko on 4/8/2024 in #❓・help
Getting Nuxt page (URL/Name) in API server request?
I want the page origin URL path
15 replies
NNuxt
Created by Ziko on 4/8/2024 in #❓・help
Getting Nuxt page (URL/Name) in API server request?
The href for the event, is also only the api endpoint
15 replies
NNuxt
Created by Ziko on 4/8/2024 in #❓・help
Getting Nuxt page (URL/Name) in API server request?
Let say i have page: pages/abc.vue, that requests nuxt API server: /api/def In def eventHandler i want to know what page requested the API, but i can at most only get origin: localhost:4200
15 replies
NNuxt
Created by Ziko on 4/8/2024 in #❓・help
Getting Nuxt page (URL/Name) in API server request?
More info: The error i get while trying to useRequestUrl, is: 'Vue app aliases are not allowed in server runtime.'
15 replies