Welcome Guest, Not a member yet? Register   Sign In
CORS Usage in Controller
#3

(04-12-2019, 03:19 PM)InsiteFX Wrote: I do it like this for fonts for security you may need to do it different.

Code:
    # Add Font Types
    AddType application/vnd.ms-fontobject .eot
    AddType font/truetype .ttf
    AddType font/opentype .otf
    AddType font/opentype .woff
    AddType font/opentype .woff2
    AddType image/svg+xml .svg .svgz

    <FilesMatch ".(eot|ttf|otf|woff|woff2|svg|svgz)">
        Header set Access-Control-Allow-Origin "*"
    </FilesMatch>

You can read all about it from the link below.

Cross-Origin Resource Sharing (CORS)


what if I want to allow one controller to only abc.com and other controller to xyz.com?
.NET and CodeIgniter Software Engineer 
Reply


Messages In This Thread
CORS Usage in Controller - by MrJunaidShahid - 04-12-2019, 01:30 PM
RE: CORS Usage in Controller - by InsiteFX - 04-12-2019, 03:19 PM
RE: CORS Usage in Controller - by MrJunaidShahid - 04-14-2019, 04:44 AM
RE: CORS Usage in Controller - by InsiteFX - 04-14-2019, 08:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB