์๋ง ๋๋ ๋์๋ฆฌ ์น์ฌ์ดํธ๊ฐ ๊ฐ์๊ธฐ POST ํธ์ถ ์ค์ ์๋์ ๊ฐ์ 403 forbidden ์ค๋ฅ๊ฐ ๋ฐ์ํ๋ฉฐ ๋์ํ์ง ์์๋ค.
{type: "constraintUrlError", status: 403, errors: [{message: "this url is constraint"}],…}
errors : [{message: "this url is constraint"}]
language : "ko"
status : 403
type : "constraintUrlError"
constraintUrlError์ ๋ํด์ ๊ฒ์๋ ํด๋ดค์ง๋ง ๋ง๋ ํ ๋ต์ด ๋์ค์ง ์์๋ค. ๊ทธ๋ฐ๋ฐ ์ญ์, ์ค๋ฅ๋ฅผ ์์ธํ ๋ค์ฌ๋ค ๋ด์ผํ๋ค. ์ค๋ฅ์ ์๋์ ๊ฐ์ ์ฃผ์๊ฐ ์์๋ค.
https://api.channel.io/front/v6/elastic/plugins/{pluginKey}/boot 403 (Forbidden)
channel.io๋ผ๋ ๊ณณ์์ ์ธ์ฆ ์ค๋ฅ๊ฐ ๋ ๊ฒ์ธ๋ฐ, ์ฌ์ค ๋๋ ์ด๋๊น์ง๋ง ํด๋ ๋์๋ฆฌ ์น์ฌ์ดํธ์์ ์ ๊ณตํ๊ณ ์๋ ์ฑ๋ํก์ ๋ ์ฌ๋ฆฌ์ง๋ ๋ชปํ๋ค. ๊ฒ์ํด๋ณด๋ channel.io๋ ํ๋ฌ๊ทธ์ธ์ด๊ณ ์ฑ๋ํก์์ ์ ๊ณต๋ฐ์ ์ฌ์ฉํ ์ ์๋ค๋ ๊ฒ์ ํ์ธํ๊ณ ๋์์ผ ์์ฆ ์ฌ์ดํธ ๋ค์ด๊ฐ ๋๋ง๋ค ์ฑ๋ํก ์์ด์ฝ์ด ๋จ๊ณ ์์ง ์์์์ ๋ ์ฌ๋ฆด ์ ์์๋ค.
์ฑ๋ํก ์ฐ๋ ์ค ์ค๋ฅ๊ฐ ๋ ๊ฒ์์ ํ์ธํ๊ณ , plugin-key๊ฐ ํ์ฌ ์ผ์นํ๋ ์ง ํ์ธํด๋ดค๋๋ฐ, pulginkey๊ฐ ์ฌ๋ฐ๊ธ ๋์๋ ๊ฒ์ด์๋ค.
๋ฐ๋ ํค๋ฅผ ๋ณด๋ ๋ฐฉ๋ฒ์ ์๋์ ๊ฐ๋ค.
์ฑ๋ํก์์ ์ ๊ณตํ๋ ๋์๋ฆฌ ๊ด๋ฆฌ ํ์ด์ง์ ์ ์ํ๋ค.
์ผ๋ฐ์ค์ > ๋ฒํผ ์ค์น ๋ฐ ์ค์ > ์ฑ๋ํก ๋ฒํผ ์ค์น ์์ plugin key ํ์ธ์ด ๊ฐ๋ฅํ๊ณ
์ฌ์ฉํ๋ ์ฝ๋๋ <๊ธฐ๋ณธ ์๋ฐ์คํฌ๋ฆฝํธ>์์ ๋ณต์ฌํ ์ ์๋ค.
๋ณต์ฌํ ์ฝ๋๋ฅผ index.html์ ๋ฃ์ด์ฃผ๋ฉด ๋๋ค.
<script>
(function () {
var w = window;
if (w.ChannelIO) {
return w.console.error("ChannelIO script included twice.");
}
var ch = function () {
ch.c(arguments);
};
ch.q = [];
ch.c = function (args) {
ch.q.push(args);
};
w.ChannelIO = ch;
function l() {
if (w.ChannelIOInitialized) {
return;
}
w.ChannelIOInitialized = true;
var s = document.createElement("script");
s.type = "text/javascript";
s.async = true;
s.src = "https://cdn.channel.io/plugin/ch-plugin-web.js";
var x = document.getElementsByTagName("script")[0];
if (x.parentNode) {
x.parentNode.insertBefore(s, x);
}
}
if (document.readyState === "complete") {
l();
} else {
w.addEventListener("DOMContentLoaded", l);
w.addEventListener("load", l);
}
})();
ChannelIO("boot", {
pluginKey: "๋ฐ๊ธ๋ฐ์ ํ๋ฌ๊ทธ์ธ ํค",
});
</script>
ํ๋ฌ๊ทธ์ธ ํค๋ฅผ ๋ค์ ์ฌ๋ฐ๋ฅด๊ฒ ์ ์ฅํ๋ ์ค๋ฅ๋ ์ฌ๋ผ์ง๊ณ ์ ๋์ํ๋ ๊ฒ์ ํ์ธํ๋ค.
์ฒ์์๋ ์ฑ๋ํก๊ณผ ๊ด๋ จ๋ ์ค๋ฅ๋ผ๋ ์๊ฐ๋ ๋ชปํ๊ธฐ ๋๋ฌธ์ API ์ฐ๋ํ๋ ๋ถ๋ถ์ด๋ firebase ์ฐ๋ ์ฝ๋ ๋ฑ ๊ด๋ จ์๋ ์ฝ๋๋ง ๊ฒํ ํ๋ฉฐ ์์ฒญ ์ฝ์ง์ ํ๋ค... ์์ผ๋ก ์๋ฌ๊ฐ ๋ฌ์ ๋ ๊ผผ๊ผผํ ํ์ธํ๊ณ ์๋ฌ๋ฅผ ํตํด ์ต๋ํ ๋ง์ ํํธ๋ฅผ ์ป์ด์ผ ๊ฒ ๋ค.
'์ค๋ฅํด๊ฒฐ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Express.js CORS ์ค๋ฅ ํด๊ฒฐ (0) | 2024.07.28 |
---|---|
zsh: command not found: nvm ํด๊ฒฐ (0) | 2024.07.19 |
TypeError: Cannot destructure property '๋ณ์๋ช ' of 'req.body' as it is undefined. (0) | 2024.06.02 |
express์์ API ๊ตฌํ์ URL parameters ๋ฐ๋ ๋ฐฉ๋ฒ (0) | 2024.05.29 |
Node.js์์ .env ๋ณ์ ์๋ถ๋ฌ์์ง (0) | 2024.05.24 |