cethyworks.io

simple solutions to complex problems.

[Tip] Enabling CORS - debug, server-side (apache conf) & client-side (angularjs) flavors

The right start

As much as it pains me to say, knowing I'm a real firefox fan, the chrome error messages are WAY more self-explanatory than the crap firefox is displaying (as of 24 september 2014).
So for this part, stick to Chrome for debugging.

Demistifying CORS & angularjs configuration

Read More →
Posted on Wednesday 24 Sep 2014
Tagged in apache , CORS , angularjs

[Tip] non-www to www redirection with apache

Redirect every request without www subdomain to www subdomain.
The "domain name agnostic way".

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Read More →
Posted on Saturday 31 May 2014
Tagged in tip , apache
Page 1 of 1
Subscribe!
All content copyright cethyworks.io © 2014 • All rights reserved.
Powered by Ghost & Built by GhostLook