We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I'm stuck with mixed content error. I'm on cloud hosting running https, but swagger try to load assets in HTTP.
Here is my swagger configuration
` use Cake\Core\Configure; return [ 'Swagger' => [ 'ui' => [ 'title' => 'PBE API Documentation', 'validator' => true, 'api_selector' => true, 'route' => 'api/swagger/', 'schemes' => ['https'] ], 'docs' => [ 'crawl' => Configure::read('debug'), 'route' => '/swagger/docs/', 'cors' => [ 'Access-Control-Allow-Origin' => '*', 'Access-Control-Allow-Methods' => 'GET, POST', 'Access-Control-Allow-Headers' => 'X-Requested-With' ] ], 'library' => [ 'api' => [ 'include' => ROOT . DS . 'src' . DS . 'Controller' . DS . 'Api', 'exclude' => [ '/Editor/' ] ] ] ] ];
`
Locally it works but not in production.
I don't understand.
Thank you, for your time
The text was updated successfully, but these errors were encountered:
Do you have https in your swagger doc scheme aswell?
**
schemes={"https"},
host="/api/v1/",
Sorry, something went wrong.
No branches or pull requests
Hello, I'm stuck with mixed content error.
I'm on cloud hosting running https, but swagger try to load assets in HTTP.
Here is my swagger configuration
`
use Cake\Core\Configure;
return [
'Swagger' => [
'ui' => [
'title' => 'PBE API Documentation',
'validator' => true,
'api_selector' => true,
'route' => 'api/swagger/',
'schemes' => ['https']
],
'docs' => [
'crawl' => Configure::read('debug'),
'route' => '/swagger/docs/',
'cors' => [
'Access-Control-Allow-Origin' => '*',
'Access-Control-Allow-Methods' => 'GET, POST',
'Access-Control-Allow-Headers' => 'X-Requested-With'
]
],
'library' => [
'api' => [
'include' => ROOT . DS . 'src' . DS . 'Controller' . DS . 'Api',
'exclude' => [
'/Editor/'
]
]
]
]
];
`
Locally it works but not in production.
I don't understand.
Thank you, for your time
The text was updated successfully, but these errors were encountered: