rahulreghunath opened a new issue, #8955:
URL: https://github.com/apache/apisix/issues/8955

   ### Current Behavior
   
   ```
   {
     "uri": "/api/v0/s1/*",
     "name": "route-subscriber",
     "methods": [
       "GET",
       "POST",
       "PUT",
       "DELETE",
       "PATCH"
     ],
     "plugins": {
       "cors": {
         "allow_credential": true,
         "allow_headers": "**",
         "allow_methods": "**",
         "allow_origins": "http://localhost:5173";,
         "disable": false,
         "expose_headers": "**",
         "max_age": -1
       }
     },
     "upstream_id": "1",
     "status": 1
   }
   ```
   
   above is the route configuration which I am using, but with this 
configuration, I am still getting the CORS error only when the request contains 
an authorization token.
   
   
![image](https://user-images.githubusercontent.com/28650610/221539592-b75ceb9c-6897-4a38-bda5-b9e663015fc3.png)
   above is the request header of the failed request and below is the response 
from API for the request without token
   
   
![image](https://user-images.githubusercontent.com/28650610/221540002-889c2aa6-3e3a-47d0-af16-c2a98a275302.png)
   
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   run api six via docker image
   write a sample vue application which can sent a server request
   configure cors plugin as mentioned above
   sent a request with an authorization token
   
   ### Environment
   
   - APISIX version apisix:3.0.0
   - Operating system ubuntu 20
   - etcd version, etcd:3.4.15
   - APISIX Dashboard version apisix-dashboard:2.13-alpine
   


-- 
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