Y
Y
Yaroslav Rostanets2019-08-23 17:02:31
JavaScript
Yaroslav Rostanets, 2019-08-23 17:02:31

How to set up CORS for Socket.io inside Docker container + PM2?

When I try to run an Express application inside a docker container, I get the following error. I tried to install already npm-cors, I added the headers by hand. Everything works fine either outside the docker container, or without Pm2, but doesn’t want to at the same time. Same thing with forever. I will be glad to ideas.
7aa08ba0f3.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2019-08-23
@planc

https://stackoverflow.com/questions/42803394/cors-...
tl;dr remove * and write a normal address in origin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question