php - apache htaccess Header Set only working for static files -


i have php application directs urls don't point static file index.php (configured in .htaccess)

i added following configuration add header requests in .htaccess file, header applied urls go static files.

    header set access-control-allow-origin * 

what prevent header being applied index.php?

so problem mod_header module wasn't working php fastcgi. started working after switching mod_php.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -