You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swagger UI shows API in IE 11 and returns "Can't read from server. It may not have the appropriate access-control-origin settings." for Chrome and Firefox
#1313
Closed
abelyaevskiy opened this issue
May 26, 2015
· 4 comments
I faced to issue "Can't read from server. It may not have the appropriate access-control-origin settings." in Firefox (37.0.2) and Chrome (43.0.2357.65).
But in IE 11 Swagger UI shows my documented API after I click "Allow blocked content". For Chrome and Firefox browsers there are no any messages.
I tried to change useJQuery to 'true' in my swagger-client.js but it did not help me.
I use SwaggerUI v2.1.8-M1 version, Swagger 1.2 spec, com.mangofactory:swagger-springmvc:1.0.0 and org.ajar:swagger-spring-mvc-ui:0.4. also, I have OAuth2 password grant flow security in my application but for resources I tests I set permitAll() property for my first experiments with Swagger.
I test 2 resources and my class-level jsons for them are
{"apiVersion":"1.0","apis":[{"description":"Platform version","path":"/default/data","position":0}],"authorizations":{},"info":{"contact":"myContact","description":"This API is used to create, configure and run tasks on platform","license":"We did not choose right license by the moment","licenseUrl":"We will publish URL to license when we choose it","termsOfServiceUrl":"terms of service","title":"API"},"swaggerVersion":"1.2"}
{"apiVersion":"1.0","apis":[{"description":"status","path":"/default/compute","position":0}],"authorizations":{},"info":{"contact":"myContact","description":"desc","license":"We did not choose right license by the moment","licenseUrl":"We will publish URL to license when we choose it","termsOfServiceUrl":"terms of service","title":"API"},"swaggerVersion":"1.2"}
Could you please help me with the issue.
The text was updated successfully, but these errors were encountered:
i m getting an error and in Chrome console i got the CORS , as api is on Https , and swagger can not charge, i did all needed for CORS and ......... but nothing works
Hello!
I faced to issue "Can't read from server. It may not have the appropriate access-control-origin settings." in Firefox (37.0.2) and Chrome (43.0.2357.65).
But in IE 11 Swagger UI shows my documented API after I click "Allow blocked content". For Chrome and Firefox browsers there are no any messages.
I tried to change useJQuery to 'true' in my swagger-client.js but it did not help me.
I use SwaggerUI v2.1.8-M1 version, Swagger 1.2 spec, com.mangofactory:swagger-springmvc:1.0.0 and org.ajar:swagger-spring-mvc-ui:0.4. also, I have OAuth2 password grant flow security in my application but for resources I tests I set permitAll() property for my first experiments with Swagger.
I test 2 resources and my class-level jsons for them are
Could you please help me with the issue.
The text was updated successfully, but these errors were encountered: