jaros1 / Money-Network

Demo with complementary and alternative money. Implemented in ZeroNet and AngularJS. Focus on privacy, encryption, max data in client and min data on ZeroNet. Work in progress.
GNU General Public License v2.0
4 stars 4 forks source link

zerogate - CORS error - glyphicons #203

Closed jaros1 closed 6 years ago

jaros1 commented 7 years ago

No delete icon (glyphicons) for chat messages:

screenshot from 2017-10-03 18-11-08

/moneynetwork.bit/?wrapper_nonce=7013efb11e4225b63cb972de8b0d9e507c2a0597f236886e18e6dad867837ec4#/chat2:1 Access to Font at 'https://www.zerogate.tk/moneynetwork.bit/public/css/fonts/glyphicons-halflings-regular.woff2' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
18:10:23.965 all.js:11597 MoneyNetworkService.z_contact_search dbQuery callback 2: todo: query 6 and query 7 will return doublet contact info for users on multiple user hubs. Now using user data from hub with last content.modified timestamp. Should filter data from "bad" hubs. 
18:10:23.967 all.js:11603 MoneyNetworkService.z_contact_search dbQuery callback 2: todo: query 7 is only deselecting current user on current user hub. query will return current user on other hubs.
18:10:23.977 all.js:2280 MoneyNetworkHubService.get_like_json get_my_user_hub callback 2: match2. hub = 1PgyTnnACGd1XRdpfiDihgKwYRRnzgz2zh
18:10:23.984 all.js:4581 MoneyNetworkHubService.i_am_online get_data_json callback 2: my_user_seq = 1, user_id = 1
18:10:23.988 all.js:2280 MoneyNetworkHubService.get_status_json get_my_user_hub callback 1: match2. hub = 1PgyTnnACGd1XRdpfiDihgKwYRRnzgz2zh
18:10:24.112 /moneynetwork.bit/?wrapper_nonce=7013efb11e4225b63cb972de8b0d9e507c2a0597f236886e18e6dad867837ec4#/chat2:1 Access to Font at 'https://www.zerogate.tk/moneynetwork.bit/public/css/fonts/glyphicons-halflings-regular.woff' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
18:10:25.037 30-ZeroFrame.js:7 [Violation] 'message' handler took 801ms
18:10:25.308 /moneynetwork.bit/?wrapper_nonce=7013efb11e4225b63cb972de8b0d9e507c2a0597f236886e18e6dad867837ec4#/chat2:1 Access to Font at 'https://www.zerogate.tk/moneynetwork.bit/public/css/fonts/glyphicons-halflings-regular.ttf' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
jaros1 commented 6 years ago

Design issue. All buttons should be from same provider. Glyphicons is OK.

jaros1 commented 6 years ago

Maybe change location of glyphicons-halflings-regular files to css folder. Now using a complicated linux directory path:

 @font-face {
  font-family: 'Glyphicons Halflings';
  src: url('../public/css/fonts/glyphicons-halflings-regular.eot');
  src: url('../public/css/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../public/css/fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../public/css/fonts/glyphicons-halflings-regular.woff') format('woff'), url('../public/css/fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../public/css/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}

Nope. Same error message at zerogate with glyphicons-halflings-regular files in css folder. Closing this issue. Only a problem at zerogate.tk