79215534

Date: 2024-11-22 15:11:12
Score: 7.5 🚩
Natty: 5
Report link

I need to get the host to, I am creating an api endpoint at ~/server/api/test but with eventon defineEventHandler is just giving me for example only localhostas host but without port.

I am trying with getRequestURL(event)too but same issue.

I need this because I am creating a wrapper for fetch and I need to send full host to an external multitenant api.

Can you help me how to get full host?.

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (3): Can you help me
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Jonathan