Any comments to this? Regards Shib
On Mon, Jul 16, 2018 at 1:34 PM, shibsankar <src...@gmail.com> wrote: > Yes. I was asking configuring CROSS-ORIGIN resources sharing for a > particular API. > > > I checked your link and I did the configuration for > Access-Control-Allow-Origin as value http://localhost but this value is > not saved. > > Why this value is not saved ? > > Please find the screenshots attached to before saving and after saving of > CORS configuration. > > Is there anything I'm missing? > > > Regards > Shib > > > On Fri, Jul 13, 2018 at 10:18 PM, Dushani Wellappili <dusha...@wso2.com> > wrote: > >> Those API based CORS configurations are set as properties >> in CORSRequestHandler of the particular API. You can see that in your >> relevant api.xml file which inside the synapse-configs/default/api di >> rectory. >> >> >> Regards, >> >> *Dushani Wellappili* >> Software Engineer - WSO2 >> >> Email : dusha...@wso2.com >> Mobile : +94779367571 >> Web : https://wso2.com/ >> >> >> >> >> On Fri, Jul 13, 2018 at 10:09 PM Dushani Wellappili <dusha...@wso2.com> >> wrote: >> >>> Hi Shib, >>> >>> If I have understood correctly, you are asking about configuring >>> Cross-Origin Resource Sharing for a particular API. Please refer this [1] >>> documentation for enabling API based CORS configurations and see whether it >>> works for you. >>> >>> >>> [1] https://docs.wso2.com/display/AM200/Enabling+CORS+for+APIs#E >>> nablingCORSforAPIs-EnablingCORSPerAPI >>> >>> Thanks. >>> >>> Regards, >>> Dushani Wellappili >>> Software Engineer - WSO2 >>> >>> Email : dusha...@wso2.com >>> Mobile : +94779367571 >>> Web : https://wso2.com/ >>> >>> >>> >>> *Dushani Wellappili* >>> Software Engineer - WSO2 >>> >>> Email : dusha...@wso2.com >>> Mobile : +94779367571 >>> Web : https://wso2.com/ >>> >>> >>> >>> >>> On Fri, Jul 13, 2018 at 4:46 PM shibsankar <src...@gmail.com> wrote: >>> >>>> Hi , >>>> >>>> I'm getting CORS ERROR in my OrderWorkFlow service API invocation. >>>> >>>> >>>> Which *file / **files* has the CORS configuration in WSO2 for *Custom >>>> Service **API* ? >>>> >>>> >>>> *Error :* >>>> >>>> Failed to load >>>> *http://xx-xx-xxx-xx-xx.xxxxxxxx.xxxxxx.xxxxxxx.xxx:8280/bsi/custOrderWorkflow/v1/init >>>> <http://xx-xx-xxx-xx-xx.xxxxxxxx.xxxxxx.xxxxxxx.xxx:8280/bsi/custOrderWorkflow/v1/init>: >>>> The value of the 'Access-Control-Allow-Origin' header in the response must >>>> not be the wildcard '*' when the request's credentials mode is 'include'. >>>> Origin 'http://localhost <http://localhost>' is therefore not allowed >>>> access. The credentials mode of requests initiated by the XMLHttpRequest is >>>> controlled by the withCredentials attribute.* >>>> >>>> Regards >>>> Shib >>>> _______________________________________________ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>> >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev