session cookieをドメイン、サブドメイン間で共有する方法 rails (API only) + graphql + apollo RailscookieGraphQLapolloSubdomain 問題 domain.tld (frontend) -> login.domain.tld (backend) frontendとbackendがある backendはサブドメインだ(その反対、両方でも可) 両方のドメインでセッションクッキーを保持したい 認証はgraphql経由(ApolloClient使用) とりあえずbackendはRailsだ(API only) 解決 corsの問題はクリアしておく サーバー側のcookie関係なくgraphqlで通信は可能な状態にしておく API onlyモードのRailsではcookieはデフォルトONではない セッションcookieももち
今回の記事は、パフォーマンスチューニングの観点と仕組みを理解することに主眼を置いています。具体的な対処方法についてはシステムによって異なるため、マニュアルの確認や、各種チューニングサービスのご利用をご検討ください。なお、この記事で対象にしているPostgreSQLのバージョンは9.5以降です。 本記事の構成 本記事「パフォーマンスチューニング9つの技」は以下4つの記事から構成されています。他の記事も併せてご覧ください。 パフォーマンスチューニング9つの技 ~はじめに~ パフォーマンスチューニング9つの技 ~「書き」について~(本記事) パフォーマンスチューニング9つの技 ~「探し」について~ パフォーマンスチューニング9つの技 ~「基盤」について~ 1. パフォーマンスチューニングの「書き」とは 一般的にデータベースは、大量データを扱い、大量の問い合わせや更新を高速に処理し、さらに障害発生
class DebugController < ActionController::Base def render_foo(argv = nil) @foo = 'Foo' render_to_string template: 'foos/show' end end DebugController.new.render_foo => "<!DOCTYPE html>\n<html lang='ja'>\n<head>\n<meta charset='UTF-8'>\n<title>Foo</title>\n</meta>\n</head>\n<body>\n<h1>Foo</h1>\n</body>\n</html>\n" ac = ApplicationController.new ac.instance_variable_set(:@foo, 'Foo') # インスタンス変数をインジ
Markdown for the component eraMDX lets you use JSX in your markdown content. You can import components, such as interactive charts or alerts, and embed them within your content. This makes writing long-form content with components a blast. 🚀 Continue reading » New: MDX 3!A small major this time, nothing big, which is also nice sometimes! This mainly drops support for old Node (use 16 or later), a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く