Debugbar CORS - Console error |
Hy. I'm getting these console messages on my site, running CI4:
Quote:Access to XMLHttpRequest at 'https://www.domain.com/index.php?debugbar_time=1625747857' from origin 'https://domain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Of course I googled it, made a filter for it, and I also put the 'Access-Control-Allow-Origin' header into the Controller, but I'm still getting this error. What am I doing wrong?
Add to your .htaccess file along side where index.php is.
Code: ## For CORS Configuration Try that, it's what I use. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(07-08-2021, 09:18 AM)paliz Wrote: Use sub domain Api.Exmple. Com Is it something for only Angular / React? Didn't planned to use those, so I'm a bit confused. Isn't it 'PHP debugbar' ?
|
Welcome Guest, Not a member yet? Register Sign In |