Re: [Dev] [IoTS] how to enable CORS in IOTS (for example: alpha version)

2017-06-19 Thread Ayyoob Hamza
> Thank you very much. Can I change the tomcat web.xml file and add the CORS > filter to implement this requirement as a workaround? > Yes, You can find the code in [1] [1] https://github.com/wso2/carbon-device-mgt/tree/v1.1.0/components/identity-extensions/dynamic-client-registration

Re: [Dev] [IoTS] how to enable CORS in IOTS (for example: alpha version)

2017-06-19 Thread 云展智创
Ayyoob, Thank you very much. Can I change the tomcat web.xml file and add the CORS filter to implement this requirement as a workaround? -- Zhanwen Zhou (Jason) +86 13922218435 zhanwen.z...@smartcloudex.com Guangzhou Smart Cloudex Technology Co., Ltd. Business: IOT, API Management 在 2017年6月

Re: [Dev] [IoTS] how to enable CORS in IOTS (for example: alpha version)

2017-06-19 Thread Ayyoob Hamza
Hi Zhanwen, The CORS configuration in api-manager.xml is related to the synapse gateway (default port 8243/8280). But the API invocation through port 9443 goes through tomcat gateway(valve). Therefore the configuration change that you did won't work on the alpha pack. However, this should work if

[Dev] [IoTS] how to enable CORS in IOTS (for example: alpha version)

2017-06-19 Thread 云展智创
Hi team, I had changed the api-manager.xml with the following setting, but I still got the errors below: XMLHttpRequest cannot load https://:9443/dynamic-client-web/register/. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present