javascript - Subdomain pointing to a php file but have JS No 'Access-Control-Allow-Origin' -


i have following line .htaccess

rewriteengine on rewritecond %{http_host} !^www\. rewritecond %{http_host} ^(.*)\.domain\.com rewriterule ^(.*)$ index-merchant.php?id=%1 [l,nc,qsa] 

1) enter abc.domain.com point domain.com/index-merchant.php?id=abc 2) js gives error - response preflight request doesn't pass access control check: no 'access-control-allow-origin' header present on requested resource 3) research on similar case on stackoverflow , other website solutions gotten did not solve problem.

i tried placing header add access-control-allow-origin: "*" on .htaccess file no luck. please enlighten me on issue , should place code at.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -