-
Notifications
You must be signed in to change notification settings - Fork 19
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 directive/plugin being ignored #13
Comments
CORS is usually not applied to GET requests. Do you experience the same thing for a POST or OPTIONS? |
Yes, Tried the same thing with
CORS directive just gets ignored |
I have exact the same problem as @hydrosIII described. How can I help to debug it? |
None of the requests posted above have an This is expected behaviour. Have you tried an actual cross-origin request from a browser? |
okay looks like the plugin works when I use the right curl command. Request
Response
caddy file
|
1. What version of Caddy are you using (
caddy -version
)?Caddy 0.10.10
2. What are you trying to do?
Enable cors for a file in my site. Using the cors plugin
3. What is your entire Caddyfile?
4. How did you run Caddy (give the full command and describe the execution environment)?
caddy --conf /root/.caddy/Caddyfile --log stdout
5. Please paste any relevant HTTP request(s) here.
curl -vvv https://mapa.rutasdelamemoria.org/config.json
6. What did you expect to see?
Using another site as reference i expected something like :
7. What did you see instead (give full error messages and/or log)?
No error logs generated by Caddy.
8. How can someone who is starting from scratch reproduce the bug as minimally as possible?
Run Caddy 0.10.10 with cors directive, and multiple site in 1 conf file. Not sure if the problem is the mulsite conf.
Using docker container for caddy : abiosoft/caddy:latest
The text was updated successfully, but these errors were encountered: