Enable CORS in Cpanel

Cpanel - Enable CORS
Cpanel - Enable CORS
Server-Side Access Control (CORS) is a security technique that can be used to regulate who or what can view or use resources in a computing environment. Browsers send specific HTTP headers for cross-site requests initiated from within XMLHttpRequest or the Fetch API. It also expects to see specific HTTP headers sent back with cross-site responses.
under Cpanel you can enable Cors with edit file .htaccess and put this command : 

<IfModule mod_headers.c> 
 Header always set Access-Control-Allow-Origin "*"
 Header always set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, PATCH, OPTIONS"
 Header always set Access-Control-Max-Age "1000"
 Header always set Access-Control-Allow-Headers "Origin, Accept, Accept-  Version,  Content-Length, Content-MD5, Content-Type, Date, X-Api-Version, x-api-key, X-Response-Time, X-PINGOTHER, X-CSRF-Token,Authorization"
 Header always set Access-Control-Expose-Headers "*"
</IfModule>

7 Comments

  1. We guarantee authentic brands avoiding inferior commercial imitations, or even dangerous counterfeits. top web design agencies

    ReplyDelete
  2. I conceive this website has very wonderful indited content material posts . design agencies

    ReplyDelete
  3. I really love the theme on your website, I run a web site , and i would adore to use this theme. Is it a free style, or is it custom? web design

    ReplyDelete
  4. Very man or woman speeches need to seat giving observe into couples. Brand new sound system just before unnecessary people should always be mindful of generally senior general rule from public speaking, which is to be the mini. best man speaches iphone png

    ReplyDelete
  5. Youre so cool! I dont suppose Ive read anything like this before. So nice to search out any individual with some original thoughts on this subject. realy thank you for starting this up. this website is one thing that’s wanted on the web, somebody with a bit of originality. useful job for bringing something new to the internet! macbook mockups

    ReplyDelete
  6. hi and thanks for the blog post i have been on the lookout for this specific information on-line for sum time now therefore appreciate it webflow company

    ReplyDelete
  7. Informative Site… Hello guys here are some links that contains information that you may find useful yourselves. It’s Worth Checking out…. apple app store mockup

    ReplyDelete
Previous Post Next Post