Help w/ Flask

How to get request url using Flask?
If the request is sent by a url block in snap.html (no open projects),that function should return
Oh,Flask is a python module that runs a server.

I don't think its possible on a repl server - all the methods I've tried just give their server or a google cloud ip.

Non-Snap! questions like this should really be asked on somewhere like

You need to get the Origin header in the request headers:

from flask import Flask, request
def index():
  return "Requested from " + request.headers.get('Origin') or ''

Nope,it just returns the origin not the entire url

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.