Skip to content

Commit

Permalink
added cors to blogs
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulvk007 committed Nov 25, 2023
1 parent 19eb4fa commit 2cf170d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/blogs/Blogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function Blogs() {

useEffect(() => {
axios
.get("https://corsproxy.io/?https://forum.lugvitc.org/c/blog/10.json", {})
.get("https://corsproxy.altacee.com/https://forum.lugvitc.org/c/blog/10.json", {})
.then(function (response) {
console.log(response.data);
const userBlog = [];
Expand Down
2 changes: 1 addition & 1 deletion src/pages/codewars/Codewars.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function Blogs() {
// console.log(values);
// console.log(selectedValue);
axios
.post("https://leaderboard.lugvitc.org/api/submit_form", values)
.post("https://corsproxy.io/?https://leaderboard.lugvitc.org/api/submit_form", values)
.then(function (response) {
// toast.success("Submitted Successfully.")
if (values.year=="1st Yr Student") {
Expand Down

0 comments on commit 2cf170d

Please sign in to comment.