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#EnablingCORSforAPIs-EnablingCORSPerAPI

Thanks.

Regards,
Dushani Wellappili
Software Engineer - WSO2

Email : [email protected]
Mobile : +94779367571
Web : https://wso2.com/



*Dushani Wellappili*
Software Engineer - WSO2

Email : [email protected]
Mobile : +94779367571
Web : https://wso2.com/




On Fri, Jul 13, 2018 at 4:46 PM shibsankar <[email protected]> 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
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to