Forum Discussion

mfj's avatar
mfj
New Contributor
2 years ago
Solved

CORS error when trying to access a protected resource

I use a docker container to run swagger-ui.  Upon customizing the  SWAGGER_JSON_URL to my the server running the API (FYI: I am using dependency-track) I am able to retrieve the swagger.json and af...
  • mfj's avatar
    2 years ago

    I found out the problem.  The Access-Control-Allow-Methods returned from the API server prefetch request used spaces instead of comma to separate the methods...Argggg.  After correcting everything is working fine.