CodeIgniter Forums
Error Debugbar-Time - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Error Debugbar-Time (/showthread.php?tid=77673)



Error Debugbar-Time - saulolago - 10-02-2020

Does anyone know anything about this error?

Refused to get unsafe header "Debugbar-Time"

[Image: Screenshot-1.jpg]


RE: Error Debugbar-Time - InsiteFX - 10-02-2020

I believe it has to do with CORS, you can try adding this to your .htaccess file in the
root with index.php

Code:
# Add Font Types
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf        .ttf
AddType application/x-font-opentype   .otf
AddType application/font-woff         .woff
AddType application/font-woff2        .woff2

# Add Image Types
AddType image/svg+xml .svg .svgz .jpg .png .ico

<FilesMatch ".(eot|ttf|otf|woff|woff2|svg|svgz|jpg|png|ico)">
    # For live server change to your real domain!
    Header set Access-Control-Allow-Origin "*"
</FilesMatch>

If it is a live server make sure to change the * to your servers real url path.