More than 1 year has passed since last update.

Nginx に CORS 用の設定をする。普通にコレで行けるね。

server {
    listen 80;
    location / {
       add_header Access-Control-Allow-Origin *;
       add_header Access-Control-Allow-Methods "POST, GET, OPTIONS";
       add_header Access-Control-Allow-Headers "Origin, Authorization, Accept";
       add_header Access-Control-Allow-Credentials true;
       proxy_pass http://localhost:8888;
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.