nekochans / lgtm-cat-bff Goto Github PK
View Code? Open in Web Editor NEW[LGTMeow](https://lgtmeow.com) のBFF(Backend For Frontend)
[LGTMeow](https://lgtmeow.com) のBFF(Backend For Frontend)
表題の通り。
最新のステージング環境に対してPOST /cat-images/validation-results を行うとCORSのエラーが返ってくる。
何故かGETのリクエストは通る。
最新のステージング環境。
BFFを利用してPOSTリクエストを送信出来ないので早めに解決を行う。
Access to fetch at 'http://localhost:8787/lgtm-images' from origin 'http://localhost:2222' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
特になし
アクセストークン発行用エンドポイントの実装を行う事でcacheを利用出来るようにする。
class MyError extends Error {
static {
this.prototype.name = "MyError";
}
}
https://www.wantedly.com/companies/wantedly/post_articles/492456
this.name
が変化するので name
は静的な値を定義するError.captureStackTrace(this, MyError);
のような記述は現代では不要特になし
prettier-plugin-sort-imports
が導入されている事eslint-plugin-import
は場合によっては削除する。
main
ブランチにマージした時にステージング環境にデプロイされるようになっている事Access-Control-Allow-Origin
が追加されている事CORSリクエストが動作しないので、早めに対応を行う。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.