You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "mscb402 (via GitHub)" <gi...@apache.org> on 2023/02/28 06:41:32 UTC

[GitHub] [apisix] mscb402 commented on issue #8955: bug: Cors Plugin not working when request having authorization token

mscb402 commented on issue #8955:
URL: https://github.com/apache/apisix/issues/8955#issuecomment-1447665063

   I think you may need to add `withCredentials` to your front-end request. https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials 
   If you are using axios for send request, you can try 
   ```
   const myrequests = axios.create({
     withCredentials: true,
     ...
   })
   ```


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org