-
Notifications
You must be signed in to change notification settings - Fork 42
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
Webpack-dev-server with proxy #27
Comments
@LiTiang try checking your Headers...it sounds like a CORS issue...i fixed it by setting my desired headers in my config, then passing it to the browserSync plugin like so:
|
@gabeweaver, thanks reply,
together without any problem ? |
@gabeweaver @LiTiang |
@Va1 , thanks reply, i'm so busy now, i will try the method which @gabeweaver support this week, If i solve the problem, i will post the whole configuration with detail specification here |
@LiTiang have you resolved this problem yet? I meet the same problem like yours. I send some axios' requests of Methods 'GET', 'POST' and 'PUT'. The 'GET' and 'POST' methods' request work well, but the 'PUT' doesn't work. I print the proxyReq's header as what @gabeweaver said, and I found the 'POST' header and the 'PUT' header are the same. |
When I use
|
@babeliao @Va1 I've followed the usage notes on here. And I got this error:
|
@aleffsouza Sounds like a pattern error |
Hi, i set
proxy
in Webpack-dev-server as belowMy app is running on http://localhost:3000/ (Webpack-dev-server)
when i click some button on my app UI
The AJAX GET ( http://localhost:3000/service_detail ) will be fired
and Webpack-dev-server will proxy that url to json-server
that's, the process of that AJAX GET like below
everything is working as expected
then i integrate the browser-sync-webpack-plugin ...
so now i can see my app running on http://localhost:3002/ (BrowserSync)
and i can see that in my mobile by typing
<my ip>:3002
in url address barlooks great !!!
BUT
If now i click that button (no matter where i do that in my mobile or pc)
I find out the app cant fetch the result from json-server in my mobile !!!
but in my pc, it still works expected
WHY ?
Is it a bug or i miss some concept of it ?
The text was updated successfully, but these errors were encountered: