Shopizer getting spring-releases (https://repo.spring.io/libs-release): Not authorized , ReasonPhrase: Unauthorized - shopizer

when we build and updated Shopizer repository then getting spring-releases (https://repo.spring.io/libs-release): Not authorized , ReasonPhrase: Unauthorized.
version: 3.2.2
Shopizer successfully updates maven dependencies without any authorization.

Related

I'm facing proxy issue in react using axios communcation package

I am trying to connect my frontend to my backend using Axios.
It currently is throwing this error:
Proxy error: Could not proxy request /logo192.png from localhost:3000
to http://localhost:6000/. See
https://nodejs.org/api/errors.html#errors_common_system_errors for
more information (ECONNREFUSED).

Laravel Sanctum SPA with React js unexpected logout error 401 (Unauthorized)

My application works perfectly (Login and all other apis) using laravel Sanctum SPA authentication with react js. But sometimes the system is logout unexpectedly, api response shows error 401 Unauthorized. Message: Unauthenticated.
Searched the web for this issue but found nothing useful.

Google Login failed {error: 'popup_closed_by_user'} on Google login in Django

I am aware that this question has been asked multiple times. However, they were usually issues related to localhost.
I have a django site where I used react for the frontend.
Everything runs perfectly when I have my react at port 3000 and django at 8000. Even the google login
But when I run
npm run build
I pasted the build folder in the django root and make all the changes in settings.py
Now I directly went to localhost:8000
this error shows up on google login
Manifest: Line: 1, column: 1, Syntax error.
Google Login failed {error: 'popup_closed_by_user'}
sometimes its even a 403 error.
I tried it on both localhost and heroku and it won't work.
I've been stuck on this for days. Would appreciate some help
Your authorized javascript origin seems correct.
In the Authorized redirect URI you have also set the base url which is not correct. If you have used some package in django for google authentication; they have given you the endpoints. Like here is the example for the social-auth
http://127.0.0.1:8000/social-auth/complete/google-oauth2/
https://some-heroku-base-url/social-auth/complete/google-oauth2/

Getting Failed to load resource: the server responded with a status of 404 (Not Found) when pushing Angular app to cloud foundry

I am able to access the client server in Angular 5 from localhost:4200 with Cross-Origin concept but when I am deploying the app using ng build to Pivotal Cloud Foundry, getting error Failed to load resource: the server responded with a status of 404 (Not Found).
Not able to figure out the exact issue.
I am using package.config.json as -
{
"/api": {
"target": "https://benifit.cfapps.io/api",
"pathRewrite": {
"^/api": ""
},
"changeOrigin": true
}
}
Also, I am using cf push -b staticfile_buildpack portal-app for pushing my app to PCF. Please suggest where and what I am missing
You are referring to the proxy config file from angular-cli dev server. This file is only used for local development, to avoid cross-origin requests. You cannot use this proxy, after the app is deployed.
So in your case the Angular app will directly query your backend underneath the following path /api. So you have to ensure the api is available at the same host (in cloud foundry). When the api is only available under benifit.cfapps.io/api, you have to change the base path for your HTTP queries in the app and also take care to enable cross-origin requests on the api side.

OAuth GitHub Authentication from single page React app

I'm trying to integrate my single page React app with GitHub.
I successfully run first stage of authentication, i.e. receiving redirect with code from https://github.com/login/oauth/authorize
The problem is the second part, i.e. POST to https://github.com/login/oauth/access_token
I can't do POST or GET from my web page itself via JavaScript or JQuery. Using $.ajax or $.post all end up with error Access-Control-Allow-Origin.
The app was created with create-react-app and run with npm start.
How can I avoid Access-Control-Allow-Origin error in my scenario? Is there a way to get GitHub token for GitHub API in some other way?
I've tried to do POST with , and it does not complain on Access-Control-Allow-Origin. In fact after .submit() I receive expected response (as per https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) but it comes as a file, which Chrome immediately downloads.

Resources