Closed tamafull closed 2 years ago
axios .post(`/api/v1/auth/sign_in`, { email: this.email, password: this.password .then(response => { console.log('headers:', response.headers); })
とすると
cache-control: "no-store, must-revalidate, private, max-age=0" content-type: "application/json; charset=utf-8"
しか取れない Networkタブで見るとちゃんと返ってきている
Access-Control-Expose-Headersを設定すれば良さそう
cors.rb
expose: ['access-token', 'client', 'uid'],
こう
とすると
しか取れない Networkタブで見るとちゃんと返ってきている