{"action":"closed","issue":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/699","repository_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle","labels_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/699/comments","events_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/699/events","html_url":"https://github.com/domaindrivendev/Swashbuckle/issues/699","id":143918859,"number":699,"title":"Swagger port mapping error.","user":{"login":"LambertW","id":12291760,"avatar_url":"https://avatars.githubusercontent.com/u/12291760?v=3","gravatar_id":"","url":"https://api.github.com/users/LambertW","html_url":"https://github.com/LambertW","followers_url":"https://api.github.com/users/LambertW/followers","following_url":"https://api.github.com/users/LambertW/following{/other_user}","gists_url":"https://api.github.com/users/LambertW/gists{/gist_id}","starred_url":"https://api.github.com/users/LambertW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambertW/subscriptions","organizations_url":"https://api.github.com/users/LambertW/orgs","repos_url":"https://api.github.com/users/LambertW/repos","events_url":"https://api.github.com/users/LambertW/events{/privacy}","received_events_url":"https://api.github.com/users/LambertW/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-28T07:40:28Z","updated_at":"2016-03-30T20:13:40Z","closed_at":"2016-03-30T20:13:40Z","body":"I am trying to use swagger in the wepapi project, and add setting in the Initialize() function like this\r\n`Configuration.Modules.AbpWebApi().HttpConfiguration.EnableSwagger(\r\nc => { c.SingleApiVersion(\"v1\", \"Abp.Test.WebApi\"); c.ResolveConflictingActions(apiDescriptions => apiDescriptions.First()); \r\nc.IncludeXmlComments(GetXmlCommentsPath()); })\r\n.EnableSwaggerUi(c => c.DisableValidator());\r\n`\r\nWhile I debug in my computer, it seems that nothing wrong with swagger.\r\nSwagger can list all apis correctly.\r\n\r\nBut when i published it into iis with port 8083(url:**http://localhost:8083/swagger/ui/index**),\r\nand use route to set port mapping like **internal: 8083 -> external:8112**,\r\nand visit the url with** http://183.234.**.**:8112/swagger/ui/index**,\r\nit will return \"Can't read from server. It may not have the appropriate access-control-origin settings.\", and we can see swagger visit url with the wrong port(8083), **http://183.234..:8083/swagger/docs/v1**.\r\n\r\n![qq 20160328111722](https://cloud.githubusercontent.com/assets/12291760/14073385/2382712a-f4fb-11e5-855d-c249f5ac5dcd.png)\r\n\r\nOnly when we change the port from 8083 to 8112(**http://183.234..:8112/swagger/docs/v1**), we can see the apis list.\r\n\r\nAm I miss some setting in the project?\r\n"}}