1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

add authentication check for popup & add notification(clipboarded)

This commit is contained in:
Rokt33r
2015-06-15 15:47:24 +09:00
parent 6aa32d49fc
commit a3ae5f02dd
7 changed files with 34 additions and 35 deletions

View File

@@ -1,8 +1,8 @@
/* global angular */
angular.module('codexen.popup')
.constant('apiUrl', 'http://localhost:8000/')
.config(function ($authProvider, $httpProvider) {
$authProvider.baseUrl = 'http://localhost:8000/'
.config(function ($authProvider, $httpProvider, apiUrl) {
$authProvider.baseUrl = apiUrl
$httpProvider.defaults.useXDomain = true
delete $httpProvider.defaults.headers.common['X-Requested-With']