You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just make a login api and i want to fetch that api from my react application but it gives me cors error. so how can i solve this issue in this structure.
The text was updated successfully, but these errors were encountered:
When I remove rest controller and extend only ci controller then it works
otherwise it won't work. So how can solve this problem with rest
controller...?
On Mon, May 15, 2023, 4:45 PM Subhradip D. ***@***.***> wrote:
Hi @Kajal81198 <https://github.com/Kajal81198> ,
Please add the below lines at the beginning of your php scripts.
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
header('Access-Control-Allow-Headers: X-Requested-With');
I hope that will resolve your problem.
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APJ3DTPPHQWFQGSAANCSN6DXGIF5DANCNFSM6AAAAAAXVTAPIQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
I just make a login api and i want to fetch that api from my react application but it gives me cors error. so how can i solve this issue in this structure.
The text was updated successfully, but these errors were encountered: