Activities of "829098@qq.com"

hi

This is because Google is blocked in some countries

https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&rsv_idx=1&tn=baidu&wd=fonts.googleapis.com%20%E4%B8%AD%E5%9B%BD&fenlei=256&rsv_pq=0xb62c290f000e02a1&rsv_t=fec126t88fzcuATJhjpoBlbRvJQeEsQaOtMPW8Cx8vJfH07fzmvfZkh7WAqP&rqlang=en&rsv_dl=tb&rsv_enter=1&rsv_sug3=1&rsv_sug1=1&rsv_sug7=100&rsv_sug2=0&rsv_btype=i&inputT=284&rsv_sug4=284

I want to know, how to repair code for angular , so , my app user can't know how to set google api but I can't found any word by google in my angular code.

Question

googleapisCheck the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: v8.0.5
  • UI Type: Angular
  • Database System: EF Core (SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

my angular web app index page can't open because fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap

Answer

when I append https:// to baseUrl
const baseUrl = 'https://www.teest.cn'; 400 error is no appear redirect is ok

so。 what is true Solution

Answer

hello when i set environment.prod.ts
const baseUrl = 'www.teest.cn'; no has http or https

my angular site index page click login button , is response 400 error

The authorization request was rejected because the 'redirect_uri' parameter wasn't a valid absolute URI: www.myAngularDomain.cn.

Answer

remoteEnv: { url: '/getEnvConfig', mergeStrategy: 'deepmerge' } 删除掉这个节点 const baseUrl = 'https://www.teest.cn'; 把这里的http或者 https去掉,不要带协议

Question
  • ABP Framework version: v8.0.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server,
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

sorry , I can't say english ,please give me chinese support, thanks!

https://docs.abp.io/en/commercial/8.0/startup-templates/application/deployment-iis?UI=NG&DB=EF&Tiered=No

1、我的API HOST DOMAIN IS Https://admin.test.com 使用无托管模式 2、我的 Angular Domain is Https://www.test.com 使用无托管模式 3、发布 angular 站点使用了 ng build --configuration production,打包后把 disc目录 拷贝到 IIS站点的目录下 4、我在IIS站点安装了 URL Rewrite组件 5、API hOST 安装了 openiddict.pfx 证书 且 IIS 的应用程序池设置了 允许加载用户文件 6、数据库的 OpenIddictApplications 表设置了 域名,http://localhost:4200 替换成了Https://www.test.com ,http://localhost:44348 替换成了Https://admin.test.com 7、appsettings.json 配置了 "App": { "SelfUrl": "https://admin.test.com", "AngularUrl": "https://www.test.com", "CorsOrigins": "https://*.test.com,https://www.test.com", "RedirectAllowedUrls": "https://www.test.com", "DisablePII": false, "HealthCheckUrl": "/health-status" },

8、angular 项目的 environment.prod.ts 配置 import { Environment } from '@abp/ng.core';

const baseUrl = 'http://www.test.com';

const oAuthConfig = { issuer: 'https://admin.test.com/', redirectUri: baseUrl, clientId: 'maotai_App', responseType: 'code', scope: 'offline_access maotai', requireHttps: true, };

export const environment = { production: true, application: { baseUrl, name: 'maotai', }, oAuthConfig, apis: { default: { url: 'https://admin.test.com', rootNamespace: 'maotai', }, AbpAccountPublic: { url: oAuthConfig.issuer, rootNamespace: 'AbpAccountPublic', }, }, remoteEnv: { url: '/getEnvConfig', mergeStrategy: 'deepmerge' } } as Environment; 当前报错信息是

The resource requested could not found on the server. Resource not found!

还需要检查哪些地方? OpenIddictApplications 表的设置是否正确? maotai_Swagger 的 客户端,RedirectUris 这样设置是否正确 ["https://admin.test.com/swagger/oauth2-redirect.html"] maotai_App 的客户端 ,RedirectUris 这样设置是否正确 ["https://www.teset.com"]

以上的 test.com 我做了替换,实际域名是可以访问的。

  • ABP Framework version: v8.0.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

  • ABP Framework version: v8.0.1
  • UI Type: MVC
  • Database System: EF Core (SQL Server])
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

you can use abp suite build code by v8.0.1

abp suite v8.0.1 has problem
but v8.0.0 is ok

I used v8.0.1 when tried to reproduce the problem that you are facing but as can be seen from the gif above, I could not reproduce it.

As far as I see from the gif, it also does not show a confirm button when you close the modal but it should show a confirm popup. So, It seems you have updated the generated js file. Can you share it here if it's possible? Or if it's not possible, could you please share your application on support@abp.io with the ticket number so that we can better assist you?

I don't change any code, and I use google chrmo

Showing 1 to 10 of 46 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11