renatomattos2912 commented on issue #1003:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/1003#issuecomment-1452407568

   > ```yaml
   > apiVersion: apisix.apache.org/v2
   > kind: ApisixPluginConfig
   > metadata:
   >   name: public-endpoints
   > spec:
   >   plugins:
   >     - name: cors
   >       enable: true
   >       config:
   >         allow_origins: http://localhost:3000
   >         allow_credential: true
   >         allow_methods: "**"
   >         allow_headers: "**"
   >         expose_headers: "**"    
   > ---
   > apiVersion: apisix.apache.org/v2
   > kind: ApisixRoute
   > metadata:
   >   name: route-test
   > spec:
   >   http:
   >     - name: rule1
   >       match:
   >         hosts:
   >           - localhost
   >         paths:
   >           - /test
   >         methods:
   >           - OPTIONS
   >           - GET
   >       backends:
   >         - serviceName: httpbin
   >           servicePort: 80      
   >       plugin_config_name: public-endpoints 
   > ```
   > 
   > I mean to use admin-api to check. I use CRDs here. My operation steps are 
basically the same as yours. The same is true for crds configuration. 
Otherwise, it is meaningless to repeat.
   
   Got it, but yes, here it works in the API but not in the CRD. Are you using 
the same versions as mine for ingress controller, apisix e etc? If dont, please 
send me your versions, so i can try here.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to