Explaining issue: response to preflight request doesn't pass access control check
You are developing a nodejs web application having some UI and backend APIs…
March 31, 2020
I have a host running mysql (not on a container). I have to run an nodejs app inside a container and access that mysql service here. Note: The host is not exposed on internet or local network.
When I’m inside that nodejs container, I can not use
Docker provides lot of networking models. One of them is to use Host networking.
docker run -it --net=host -d node
Now when inside the container, you try to use hostname as localhost, it will work like a charm.
With this networking mode, the container shares the same networking space as of host. The container does not gets its own ip. Example, if you run apache container on port 8080 with this networking mode. That service is available on localhost:8080 on host, without need to expose or binding the port.
It is important to note that with this option, port binding options are ignored like -p, —publish. And, this mode works only on linux hosts. This do not work on docker for mac, windows.
You are developing a nodejs web application having some UI and backend APIs…
This is regarding the timeit implementation in python. The basic requirement…
While doing code review of one of junior, I encountered following code: What…
Thanks for reading.
Introduction In your backend and frontend projects, you always need to deal with…
Introduction Drupal provides a powerful comment module, which comes as a part of…
Introduction In this post we will see following: How to schedule a job on cron…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…