fahimmurshed

blocked by CORS policy: No 'Access-Control-Allow-Or

Jun 1st, 2020
1,388
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Add this on the .htaccess
  2. # Change the domain and TLD
  3. <ifmodule mod_headers.c="">
  4.     SetEnvIf Origin "^(.*\.domain\.com)$" ORIGIN_SUB_DOMAIN=$1
  5.     Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN
  6.     Header set Access-Control-Allow-Methods: "*"
  7.     Header set Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept, Authorization"
  8. </ifmodule>
RAW Paste Data