SHARE
TWEET

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

fahimmurshed Jun 1st, 2020 (edited) 824 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top