CRAFTERCMS-435: Improvement in crafter security provider to manage refer...

...ent or just response status code