This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row" ng-file-drop> | |
<div class="col-md-6 col-lg-6"> | |
<h3>Select files</h3> | |
<div ng-show="uploader.isHTML5"> | |
<!-- Example: ng-file-drop | ng-file-drop="options" --> | |
<div class="marketing img-drop-zone" ng-file-drop="{ url: '/foo' }" ng-file-over="img-hover"> | |
<span class="icon ion-image icon-bg"></span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.config(function($httpProvider) { | |
var logsOutUserOn401 = function($location, $q, SessionService) { | |
var success = function(response) { | |
return response; | |
}; | |
var error = function(response) { | |
if(response.status === 401) { | |
SessionService.unset('authenticated'); | |
$location.path('/login'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/config/config.yml | |
# The part that saved me was: | |
# 1: My quotes didn't wrap every header type in allow_headers | |
# 2: hosts: has to be set to the domain making the request. | |
nelmio_cors: | |
defaults: | |
allow_credentials: true | |
allow_origin: ['*'] |
NewerOlder