Skip to content
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

CORS failing in docker #173

Open
ignition42 opened this issue Oct 4, 2023 · 2 comments
Open

CORS failing in docker #173

ignition42 opened this issue Oct 4, 2023 · 2 comments

Comments

@ignition42
Copy link

ignition42 commented Oct 4, 2023

Hello, I was trying to build the docker image and access to mailslurper, but it fails with CORS on all handlebar templates (.hbs files) and fonts.

To reproduce it:

git clone https://github.com/mailslurper/mailslurper.git
cd mailslurper/
docker build -t mailslurper .
docker run -it --rm --name mailslurper -p 8080:8080 -p 8085:8085 -p 2500:2500 mailslurper

Then access http://localhost:8080

Screenshot 2023-10-04 at 14 47 21 Screenshot 2023-10-04 at 14 47 44

For now I will just put a reverse proxy as a workaround, but that's not desirable.
That doesn't work. At least the default config applied by the Dockerfile.

Best regards and thanks for this awesome tool!

@ignition42
Copy link
Author

Actually a reverse proxy doesn't help, I will try to tinker with the config and see if I can get it working

@TWinsnes
Copy link

As a workaround you can open mailslurper on http://0.0.0.0:8080 and you will work around the CORS issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants