-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
send HTTP request from external app to this app #1337
Comments
please help |
I used the following url to send my request: |
Sorry, I misunderstood your last question! I think the problem might be that in development, your request will hit the frontend vite server first, so you'll need to add a proxy for the route you're using. Probably something like this in your vite.config file: proxy: {
"^/(\\?.*)?$": proxyOptions,
"^/api(/|(\\?.*)?$)": proxyOptions,
+ "^/route(/|(\\?.*)?$)": proxyOptions,
}, Hope this helps! |
this solved my issue, thank you very much |
Happy to hear that, sorry for the confusion :) Closing the issue then! |
Hi, when I created this issue earlier, you guys told me to add my route before the line:
<script type="module"> import RefreshRuntime from "/@react-refresh" RefreshRuntime.injectIntoGlobalHook(window) window.$RefreshReg$ = () => {} window.$RefreshSig$ = () => (type) => type window.__vite_plugin_react_preamble_installed__ = true </script>app.use("/api/*", shopify.validateAuthenticatedSession());
and it will work. But when I did that and sent the request via Postman, it still returned this:
The text was updated successfully, but these errors were encountered: