• Skip to primary navigation
  • Skip to content
  • Skip to footer
Wannabe Exceptional
  • About
  • Slides

    CORS in Apache2

    Complete guide to enabling Cross-Origin Resource Sharing (CORS) in Apache2 web server for handling cross-domain requests and API access.

    less than 1 minute read

    Jan Peter Alexander

    Jan Peter Alexander

    There is nothing certain than the uncertainty itself. Capture, learn and mitigate. Welcome!

    • Planet Earth
    • Website
    • Twitter
    • Facebook
    • Instagram
    • Tumblr
    • GitHub
    • Last.fm
    • Steam
    • YouTube
    • Soundcloud

    Browser keep stricter each days. Now, they insist on CORS. I can’t enable it in .htaccess, must do it in sites-enabled.

    <IfModule mod_headers.c>
      <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
        Header set Access-Control-Allow-Origin "*"
      </FilesMatch>
    </IfModule>
    

    Further Read

    Access-Control-Allow-Origin Multiple Origin Domains?

    Tags: apache2, cors, site

    Categories: linux, tutorial, web

    Updated: January 5, 2017

    Twitter Facebook LinkedIn
    Previous Next

    You May Also Enjoy

    Qwen3-Next-80B-A3B: Updated Analysis and Practical Usage Guide

    6 minute read

    An update to our previous analysis of Alibaba’s Qwen3-Next-80B-A3B models, with practical usage instructions for Hugging Face Transformers, SGLang, and Qwen ...

    Developing AI Systems Using CMMI DEV Strategy: A Comprehensive Framework

    18 minute read

    Comprehensive guide to developing AI systems using CMMI DEV maturity framework, covering process adaptation, ethical considerations, risk management, quality...

    CMMI DEV Maturity Levels: A Comprehensive Analysis

    24 minute read

    An in-depth analysis of CMMI DEV maturity levels, exploring the five levels from Initial to Optimizing, their process areas, benefits, and implementation cha...

    Vibe Coding vs Spec-Driven Development: AI-Powered Approaches in Modern Software Development

    6 minute read

    Explore the differences between vibe coding and spec-driven development in AI-driven coding contexts. Learn when to use each approach, their advantages and d...

    • Feed
    © 2025 Wannabe Exceptional. Powered by Jekyll & Minimal Mistakes.