Kosei arima-Kun
Leecher
- Joined
- Jul 21, 2023
- Posts
- 11
- Reaction
- 3
- Points
- 4
Hello mga paps, meron ba dito ang may experience sa pag API request sa API URL na need mag pasa ng client certificate(filename.crt at filename.key) sa NextJS. Sa Postman nagawa ko sya ang nakakuha ng expected ko na response, nag post request ako sa mismong api url at nag add ng client certificate sa settings specifically sa API URL, at naka enable ang 'Follow original HTTP Method'. Pano nyo po nagawa sa (route.ts or route.js) sa api end point nyo po sa NEXTJS. May sample ako ng code ko nag pass ako ng httpsAgent tapos empty response tapos method not allow, feeling ko nag change si axios ng method after redirect, tapos isa naka kino-mment sa part ng httpsAgent tapos may HTML reponse na need ng ssl certificate. Thank you in Advance sa help.
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
Last edited: