nestjs sso google #17859
Unanswered
Elmatbaisaad
asked this question in
Q&A
nestjs sso google
#17859
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i keep having that error when to get a route : Access to XMLHttpRequest at 'https://accounts.google.com/o/oauth2/v2/auth?rprofile&(redirected from 'http://localhost:3000/posts') from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
post-list.component.html:1 GET https://accounts.google.com/o/oauth2/v2/auth?response_type=codeprofile&D
scheduleTask @ zone.js:2645
scheduleTask @ zone.js:389
onScheduleTask @ core.mjs:10710
scheduleTask @ zone.js:382
onScheduleTask @ zone.js:279
scheduleTask @ zone.js:382
scheduleTask @ zone.js:216
scheduleMacroTask @ zone.js:239
scheduleMacroTaskWithCurrentZone @ zone.js:672
(anonymous) @ zone.js:2678
proto. @ zone.js:962
(anonymous) @ http.mjs:2190
_trySubscribe @ Observable.js:37
(anonymous) @ Observable.js:31
errorContext @ errorContext.js:19
subscribe @ Observable.js:22
source.subscribe.isComplete @ switchMap.js:14
OperatorSubscriber._next @ OperatorSubscriber.js:13
next @ Subscriber.js:31
(anonymous) @ innerFrom.js:51
_trySubscribe @ Observable.js:37
(anonymous) @ Observable.js:31
errorContext @ errorContext.js:19
subscribe @ Observable.js:22
(anonymous) @ switchMap.js:10
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:26
errorContext @ errorContext.js:19
subscribe @ Observable.js:22
(anonymous) @ catchError.js:9
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:26
errorContext @ errorContext.js:19
subscribe @ Observable.js:22
(anonymous) @ finalize.js:5
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:26
errorContext @ errorContext.js:19
subscribe @ Observable.js:22
(anonymous) @ finalize.js:5
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:26
errorContext @ errorContext.js:19
subscribe @ Observable.js:22
doInnerSub @ mergeInternals.js:19
outerNext @ mergeInternals.js:14
OperatorSubscriber._next @ OperatorSubscriber.js:13
next @ Subscriber.js:31
(anonymous) @ innerFrom.js:51
_trySubscribe @ Observable.js:37
(anonymous) @ Observable.js:31
errorContext @ errorContext.js:19
subscribe @ Observable.js:22
mergeInternals @ mergeInternals.js:50
(anonymous) @ mergeMap.js:13
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:26
errorContext @ errorContext.js:19
subscribe @ Observable.js:22
(anonymous) @ filter.js:6
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:26
errorContext @ errorContext.js:19
subscribe @ Observable.js:22
(anonymous) @ map.js:6
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:26
errorContext @ errorContext.js:19
subscribe @ Observable.js:22
(anonymous) @ common.mjs:3990
untracked @ core.mjs:2767
createSubscription @ common.mjs:3990
_subscribe @ common.mjs:4076
transform @ common.mjs:4063
ɵɵpipeBind1 @ core.mjs:23678
PostListComponent_Template @ post-list.component.html:1
executeTemplate @ core.mjs:11966
refreshView @ core.mjs:13461
detectChangesInView @ core.mjs:13626
detectChangesInComponent @ core.mjs:13601
detectChangesInChildComponents @ core.mjs:13639
refreshView @ core.mjs:13511
detectChangesInView @ core.mjs:13626
detectChangesInEmbeddedViews @ core.mjs:13569
refreshView @ core.mjs:13485
detectChangesInView @ core.mjs:13626
detectChangesInComponent @ core.mjs:13601
detectChangesInChildComponents @ core.mjs:13639
refreshView @ core.mjs:13511
detectChangesInternal @ core.mjs:13400
detectChanges @ core.mjs:13917
tick @ core.mjs:28625
(anonymous) @ core.mjs:28785
invoke @ zone.js:368
onInvoke @ core.mjs:11041
invoke @ zone.js:367
run @ zone.js:129
run @ core.mjs:10892
next @ core.mjs:28784
next @ Subscriber.js:91
_next @ Subscriber.js:60
next @ Subscriber.js:31
(anonymous) @ Subject.js:34
errorContext @ errorContext.js:19
next @ Subject.js:27
emit @ core.mjs:10628
checkStable @ core.mjs:10960
onHasTask @ core.mjs:11058
hasTask @ zone.js:422
_updateTaskCount @ zone.js:443
_updateTaskCount @ zone.js:272
runTask @ zone.js:190
drainMicroTaskQueue @ zone.js:581
Promise.then (async)
nativeScheduleMicroTask @ zone.js:557
scheduleMicroTask @ zone.js:568
scheduleTask @ zone.js:392
scheduleTask @ zone.js:216
scheduleMicroTask @ zone.js:236
scheduleResolveOrReject @ zone.js:1247
then @ zone.js:1442
bootstrapModule @ core.mjs:28296
4913 @ main.ts:6
webpack_require @ bootstrap:19
webpack_exec @ main.ts:7
(anonymous) @ main.ts:7
webpack_require.O @ chunk loaded:23
(anonymous) @ main.ts:7
webpackJsonpCallback @ jsonp chunk loading:34
(anonymous) @ main.js:2
Show 123 more frames
Show less
post-list.component.html:1 ERROR HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: 'Unknown Error', url: 'http://localhost:3000/posts', ok: false, …}
even though i enabled cors in backend.
Thank you for your help
Beta Was this translation helpful? Give feedback.
All reactions