Wide open CORS not working?

Hello,

I want 'Wide-open' cors settings within my new created Docker Service.
This is what i used:

- "traefik.http.middlewares.corsheaders.headers.accesscontrolallowmethods=GET,POST,PATCH,OPTIONS"
  - "traefik.http.middlewares.corsheaders.headers.accesscontrolalloworiginlist=*"
  - "traefik.http.middlewares.corsheaders.headers.accessControlAllowCredentials=true"
  - "traefik.http.middlewares.corsheaders.headers.accessControlAllowHeaders=DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"

but still got the error:
Access to XMLHttpRequest at 'x' from origin 'http://localhost:8100' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Can you do an OPTIONS request using curl and see what response headers are sent?

See my comment linked below, as you want * ignore the comment on shceme://host format:

1 Like