Darko Todorovski
Darko Todorovski

Reputation: 173

TypeError: Failed to fetch swagger ui issue

I am new with swagger and i am experiencing some problem with it.I've run a server for the swagger and additional for the dummy data that you can generate from the swagger but both are not connected somehow.

I am getting this errorenter image description here

also this is the error i am getting when i do so: enter image description here

I know this issue is with CORS and i've read all docs provided:

cors git

Crossover with git -cors

a link from SO with similar issue: link

and i am still not able to fix my issue!

Please advise,

Darko

Upvotes: 1

Views: 6382

Answers (1)

Darko Todorovski
Darko Todorovski

Reputation: 173

Ok, I found a solution to my problem. What basically what was i doing was testing the problem on a wrong server the swagger local editor and i needed to test it on the swagger tester. Sorry for the inconvenience i solved my problem by just testing it on the local swagger ui that is provided by the swagger server.

Upvotes: 1

Related Questions