Yammer CORS browser issue while make api call

%3CLINGO-SUB%20id%3D%22lingo-sub-63682%22%20slang%3D%22en-US%22%3EYammer%20CORS%20browser%20issue%20while%20make%20api%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-63682%22%20slang%3D%22en-US%22%3E%3CP%3EWe%26nbsp%3Bare%20need%20to%20use%20yammer%20feeds%20in%20our%20site.%20But%20we%20are%20not%20prompted%20due%20to%20CORS%20issue%20in%20browser.%20When%20we%20call%20authentication%20the%20login%20dialog%20open%20and%20closed%20suddenly.%20While%20check%20with%20the%20browser%20console.%20we%20got%20bellow%20errors.%26nbsp%3B%3CBR%20%2F%3E%22%26nbsp%3BOrigin%20http%3A%2F%2Flocalhost%3A65106%20not%20found%20in%20Access-Control-Allow-Origin%20header.%22%3C%2FP%3E%3CP%3E%22XMLHttpRequest%3A%20Network%20Error%200x80070005%2C%20Access%20is%20denied.%22%3C%2FP%3E%3CP%3E%22Origin%20http%3A%2F%2Flocalhost%3A65106%20not%20found%20in%20Access-Control-Allow-Origin%20header.%22%3C%2FP%3E%3CP%3E%22XMLHttpRequest%3A%20Network%20Error%200x80070005%2C%20Access%20is%20denied.%22%3C%2FP%3E%3CP%3E%22%5Byammer%5D%20Login%20failed%3A%20Invalid%20JavaScript%20origin%22%3C%2FP%3E%3CP%3E%22Access%20is%20denied%22%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F13522i9B542B785EDD7CCB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22CORSissue.png%22%20title%3D%22CORSissue.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BWe%20had%20tried%20with%20angular%20js%20also.%20But%20not%20works%20for%20%3CSPAN%3Eauthentication%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-63682%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EYammer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-64788%22%20slang%3D%22en-US%22%3ERe%3A%20Yammer%20CORS%20browser%20issue%20while%20make%20api%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64788%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20that's%20the%20issue.%20I%20found%20and%20resolved%2CThanks%26nbsp%3BVictor%20Nguyen.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-64748%22%20slang%3D%22en-US%22%3ERe%3A%20Yammer%20CORS%20browser%20issue%20while%20make%20api%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64748%22%20slang%3D%22en-US%22%3E%3CP%3EHave%20you%20registered%20your%20javascript%20origin%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdeveloper.yammer.com%2Fdocs%2Fjs-sdk%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.yammer.com%2Fdocs%2Fjs-sdk%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

We are need to use yammer feeds in our site. But we are not prompted due to CORS issue in browser. When we call authentication the login dialog open and closed suddenly. While check with the browser console. we got bellow errors. 
" Origin http://localhost:65106 not found in Access-Control-Allow-Origin header."

"XMLHttpRequest: Network Error 0x80070005, Access is denied."

"Origin http://localhost:65106 not found in Access-Control-Allow-Origin header."

"XMLHttpRequest: Network Error 0x80070005, Access is denied."

"[yammer] Login failed: Invalid JavaScript origin"

"Access is denied"CORSissue.png

 

 We had tried with angular js also. But not works for authentication

2 Replies

Have you registered your javascript origin?

 

https://developer.yammer.com/docs/js-sdk

 

 

Yes, that's the issue. I found and resolved,Thanks Victor Nguyen.