We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
可以选择在拦截器中添加 withCredentials,或者是class级别 @DefaultHeaders(headers: Object)、方法级别@Header(key: string)添加。
@Cacheable({ pool: 'articles' }) @GET('article') fetchArticles(@Query('pageIndex') pageIndex = 1, @Query('pageSize') pageSize = 10, @Header('withCredentials') withCredentials: boolean, @Query('keyword') keyword?: string): Observable<SearchResult<Article>> { return null; }
或者:
@Injectable() @DefaultHeaders({ withCredentials: true }) export class OnlineArticleService extends RebirthHttp implements IArticleService { }
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: